cant find python executable_gyp ERR! stack Error: Can't find Python executable 'python'
gyp ERR! stack Error: Can't find Python executable 'python'
系统: Win10
Gatsby使用一个Starter
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (G:\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:101:14)
gyp ERR! stack at G:\nodejs\node_modules\npm\node_modules\node-gyp\lib\confi
gure.js:64:11
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "G:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\
bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Windows\system32\node_modules\caress-server\node_modules\buffert
ools
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! buffertools@2.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the buffertools@2.0.1 install script.
npm ERR! This is most likely a problem with the buffertools package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls buffertools
npm ERR! There is likely additional logging output above.
Root Cause
Some npm plugins need node-gyp to be installed.
However, node-gyp has it's own dependencies
反正就是一系列的组件没安装呗.
注意: 这玩意不支持Python 3.0, 因此只能安装2.7
Solution Step 1
Stackoverflow找到的第一个答案
管理员执行:
$ npm install --global --production windows-build-tools
然后执行:
$ npm install --global node-gyp
Solution Step 2
然鹅上面的Solution似乎对我的电脑无用啊...
可能需要手动设置
npm config set python python2.7
npm config set msvs_version 2015
我不确定这样的设置是否会影响到runtime, 因此我顺手再设置了一个环境变量
PYTHON = C:\Users\Zill.windows-build-tools\python27\python.exe
注意这儿需要详细到文件名
然后就解决了
Reference
cant find python executable_gyp ERR! stack Error: Can't find Python executable 'python'相关推荐
- ERR! configure error gyp ERR! stack Error: Can't find Python executable python
Node.js 在安装模块的时候报错,缺少python环境. ERR! configure error gyp ERR! stack Error: Can't find Python executab ...
- gyp ERR! stack Error: Can't find Python executable 'python'
gyp ERR! stack Error: Can't find Python executable 'python' 系统: Win10 Gatsby使用一个Starter[1]进行npm inst ...
- npm i安装包依赖时 gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env
报错内容 gyp verb ensuring that file exists: C:\Python27\python.exe gyp ERR! configure error gyp ERR! st ...
- gyp ERR! stack Error: Can't find Python executable python, you can set the PYTHON env variable.
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env va ...
- error gyp ERR! stack Error: Could not find any Visual Studio installation to use
今天安裝 npx create-react-app my-app 报错. 其他报错的方法这里就不讲了,其他好多站都有解决办法,这里把没有提到过的说下. 报错信息 gyp ERR! find VS gy ...
- gyp ERR configure error gyp ERR stack Error: Command failed: C:....
一.问题描述 npm install 报错 二.问题原因 node.js与系统的python版本冲突 我的是Py39 三.问题解决 执行 npm config set python python2.7 ...
- Mac安装webpack报错gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1解决
安装webpack ,报错提示 gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ER ...
- OpenBmc开发错误6:gyp ERR! configure error gyp ERR! stack Error: socket hang up
错误提示: gyp ERR! configure error gyp ERR! stack Error: socket hang up 原因分析: 没有设置网络代理 解决方法: 进入设置,选择&quo ...
- VUE如何导入开源项目及报错处理gyp ERR! stack Error: Command failed: D:\Python\python.EXE -c import sys; print “%s.
首先git项目到本地 git clone +地址 之后再用idea导入项目,先要安装依赖, npm install 但有时会报缺少Python环境的错,用cnpm解决 步骤: 安装cnpm: npm ...
- gyp ERR! stack Error: EACCES: permission denied, mkdir
1.原因 npm 出于安全考虑不支持以 root 用户运行,即使你用 root 用户身份运行了,npm 会自动转成一个叫 nobody 的用户来运行,而这个用户几乎没有任何权限.这样的话如果你脚本里有 ...
最新文章
- POM.xml 标签详解
- Windows 2003 + ISA 2006+单网卡×××配置(4)
- Redis入门(二)安装和基本操作
- ionic助手 v1.9.0 一键式开发环境工具(告别命令行,超强功能)
- .NET Core 使用 K8S ConfigMap的正确姿势
- c#之多线程之为所欲为
- web 折线图大数据量拉取展示方案_对比多种微前端方案
- docker容器的使用
- 【1+X Web前端等级考证 】| 最新Web前端开发中级实操
- 数据库:简述对数据库的认识
- 延时消抖c语言,蓝桥杯练习(二)按键的使用和延时消抖
- catia二次开发c语言,CATIA二次开发1_VB语言基础语法
- Excel 怎么把多个excel工作表合并在一起
- 【转】京东抢购服务高并发实践
- 限制input 输入框只能输入数字
- 省市区三级联动area
- word该值小于列表中的前一条目_文本主题发现(一)-- 数据预处理
- 戴眼镜会需要眼镜盒,该怎么创建眼镜盒嗯?下面我们就来看看3dmax创建眼镜盒模型的技巧。
- 计算机说课稿模板小学数学,优秀小学数学专用说课模板
- Azure IoT 中级(1)-Device Provisioning Service(DPS)概览
热门文章
- Firefly加入OPEN AI LAB生态计划,推出AI开源主板
- opensuse安装Tomcat碰到的问题
- Java 中 Comparable 和 Comparator 比较(转)
- java 小总结,以后复习看以看
- 用firefox保存网页
- Windows 2008 R2 导出Excel时提示:未在本地计算机上注册“Microsoft.Jet.OLEDB.4.0”提供程序。
- 【LeetCode】【字符串】题号:*13. 罗马数字转整数
- HTML5学习总结(1)——HTML5基础知识
- Python—常用的几种列表、字典
- mysql php 空格函数_MySQL_mysql 强大的trim() 函数,mysql中的去除左空格函数: LTRI - phpStudy...