Dan*_*nko 9 python windows environment-variables node.js node-gyp
我删除了节点模块,重新安装它,尝试安装 npm install --global node-gyp,清理强制缓存和其他
error C:\Users\danil\work\cryptobetting\node_modules\sha3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: C:\Users\danil\work\cryptobetting\node_modules\sha3
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@4.0.0
gyp info using node@10.14.2 | win32 | x64
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Programs\Python2.7\python2.7.exe", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Users\danil\work\cryptobetting\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\danil\work\cryptobetting\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at C:\Users\danil\work\cryptobetting\node_modules\graceful-fs\polyfills.js:282:31
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:154:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\danil\\work\\cryptobetting\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\danil\work\cryptobetting\node_modules\sha3
Run Code Online (Sandbox Code Playgroud)
该node-gyp安装指令提供两种选择让所有的必要的依赖,包括Python 2。
选项1
安装使用微软的所有必要的工具和配置Windows的构建工具使用
npm install --global --production windows-build-tools从提升的PowerShell或cmd.exe,(以管理员身份运行)。
npm install --global --production windows-build-tools
Run Code Online (Sandbox Code Playgroud)
选项 2是单独手动安装它们。在这里阅读所有内容:https : //github.com/nodejs/node-gyp#on-windows
| 归档时间: |
|
| 查看次数: |
11672 次 |
| 最近记录: |