使用node14.16安装报错
我更换到node15.16版本。因为没有办法使用cnmp执行安装,我用的是npm install执行安装报错如下:
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 (D:\go\mall-master\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (D:\go\mall-master\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at D:\go\mall-master\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:183:21)
gyp ERR! System Windows_NT 10.0.26200
gyp ERR! command "C:\\nvm4w\\nodejs\\node.exe" "D:\\go\\mall-master\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\go\mall-master\node_modules\node-sass
gyp ERR! node -v v14.16.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
[ ......] \ postinstall: info lifecycle node-sass@4.13.0~postinstall: Failed to exec postinstall script
正在回答 回答被采纳积分+1
- 参与学习 532 人
- 解答问题 611 个
风口上的技术,薪资水平遥遥领先,现在学习正值红利期! 未来3-5年,Go语言势必成为企业高性能项目中不可替代的语言 从基础到项目实战再到重构,对转行人员友好,真正从入门到精通!
了解课程

恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星