gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0
来源:互联网 发布:sql case when 嵌套 编辑:程序博客网 时间:2024/06/03 06:22
npm install 的时候报了如下错误:
gyp ERR! configure errorgyp ERR! stack Error: Python executable "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.EXE" is v3.6.2, which is not supported by gyp.gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.gyp ERR! stack at failPythonVersion (D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:14)gyp ERR! stack at D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:443:9gyp ERR! stack at ChildProcess.exithandler (child_process.js:189:7)gyp ERR! stack at emitTwo (events.js:106:13)gyp ERR! stack at ChildProcess.emit (events.js:191:7)gyp ERR! stack at maybeClose (internal/child_process.js:891:16)gyp ERR! stack at Socket.<anonymous> (internal/child_process.js:342:11)gyp ERR! stack at emitOne (events.js:96:13)gyp ERR! stack at Socket.emit (events.js:188:7)gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:497:12)gyp ERR! System Windows_NT 10.0.14393gyp ERR! command "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\node_modules\\node-gy
解决方法:
安装不同版本python,然后使用时 npm install --python=python2.7
阅读全文
0 0
- gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0
- gyp ERR! stack Error: Can't find Python executable 'python'
- gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable
- ERR! configure error gyp ERR! stack Error: Can't find Python executable "python"
- DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|c
- How to switch to the shell you want
- Python实现Table To Point代码
- WTL出现GUID错误 Did you forget to pass the LIBID to CComModule::Init?
- WTL出现GUID错误 Did you forget to pass the LIBID to CComModule::Init?
- How to implement switch statement in python
- pass on to the entire
- 如何快速解决TeXstudio提示的错误:did you pass the "backend=biber" option to BibLaTeX?
- Can we pass nontype parameters to templates?
- Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法
- configure: error: Can not link to python
- WTL工程中出现运行“Did you forget to pass the LIBID to CComModule::Init”的解决方法
- WTL工程中出现运行“Did you forget to pass the LIBID to CComModule::Init”的解决方法
- Spyder is already running. If you want to open a new instance, please pass to it the --new-instance
- 简单网页代码
- [cnblogs镜像]Unity 组件的增、查、禁、删 代码书写
- [cnblogs镜像]Unity5.0 状态机新增的entry/exit
- 单独的数字(位运算)
- c++ static
- gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0
- suse12 源码安装openldap2.4
- Solve this interesting problem
- [cnblogs镜像]NGUI 按钮点击事件的两种绑定形式
- 136. Single Number
- 面试中遇到过的问题
- WordPress主题 The Ken 多用途创意设计多功能主题汉化版[更新至v3.7]
- [cnblogs镜像]Unity 导入的模型检测不到碰撞
- Android Mediacodec H.265文件播放