小编Dan*_*nko的帖子

吉普错误!堆栈错误:找不到 Python 可执行文件

我删除了节点模块,重新安装它,尝试安装 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 …
Run Code Online (Sandbox Code Playgroud)

python windows environment-variables node.js node-gyp

9
推荐指数
2
解决办法
1万
查看次数