Node.js I';我正在设置一个ionic项目,并在运行命令npm install时收到这些错误 gyp ERR!配置错误 哎呀!堆栈错误:找不到Python可执行文件“Python”,可以设置Python env变量。 哎呀!PythonFinder.failNoPython上的堆栈(C:\Program Files\nodejs\node\U modules\npm\node\U modules\npm lifecycle\node\U modules\node gyp\lib\configure.js:484:19) 哎呀!堆叠在PythonFinder。(C:\Program Files\nodejs\node\U modules\npm\node\U modules\npm lifecycle\node\U modules\node gyp\lib\configure.js:509:16) 哎呀!堆栈位于C:\Program Files\nodejs\node\u modules\npm\node\u modules\fs\polyfills.js:284:29 哎呀!堆栈在FSReqWrap.oncomplete(fs.js:149:21) 哎呀!系统Windows\u NT 10.0.18362 哎呀!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\npm lifecycle\\node\u modules\\node gyp\\bin\\node gyp.js“重建” 哎呀!cwd E:\test proj\Angular\ionic test\node\u modules\ed25519 哎呀!节点-v10.0.0 哎呀!节点gyp-v3.8.0 哎呀!不好

Node.js I';我正在设置一个ionic项目,并在运行命令npm install时收到这些错误 gyp ERR!配置错误 哎呀!堆栈错误:找不到Python可执行文件“Python”,可以设置Python env变量。 哎呀!PythonFinder.failNoPython上的堆栈(C:\Program Files\nodejs\node\U modules\npm\node\U modules\npm lifecycle\node\U modules\node gyp\lib\configure.js:484:19) 哎呀!堆叠在PythonFinder。(C:\Program Files\nodejs\node\U modules\npm\node\U modules\npm lifecycle\node\U modules\node gyp\lib\configure.js:509:16) 哎呀!堆栈位于C:\Program Files\nodejs\node\u modules\npm\node\u modules\fs\polyfills.js:284:29 哎呀!堆栈在FSReqWrap.oncomplete(fs.js:149:21) 哎呀!系统Windows\u NT 10.0.18362 哎呀!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\npm lifecycle\\node\u modules\\node gyp\\bin\\node gyp.js“重建” 哎呀!cwd E:\test proj\Angular\ionic test\node\u modules\ed25519 哎呀!节点-v10.0.0 哎呀!节点gyp-v3.8.0 哎呀!不好,node.js,angular,npm,node-gyp,Node.js,Angular,Npm,Node Gyp,您的问题与python有关,而不是节点或角度。关于python路径问题有很多问题,如: 我安装了windows构建工具,它解决了我的问题 gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPytho

您的问题与python有关,而不是节点或角度。关于python路径问题有很多问题,如:


我安装了windows构建工具,它解决了我的问题

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:149:21)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\npm-lifecycle\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\test-proj\Angular\ionic-test\node_modules\ed25519
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok