PS E:codemall-admin-web> npm install 失败了咋整??
PS E:codemall-admin-web> npm install 失败了咋整??
++
S E:codemall-admin-web> npm install --registry=https://registry.npm.taobao.org
npm ERR! code 1
npm ERR! path E:codemall-admin-webnode_modulesnode-sass
npm ERR! command failed
npm ERR! command C:Windowssystem32cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@14.15.4 | win32 | x64
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack at PythonFinder.failNoPython (E:codemall-admin-webnode_modulesnode-gyplibconfigure.js:484:19)
npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (E:codemall-admin-webnode_modulesnode-gyplibconfigure.js:509:16)
npm ERR! gyp ERR! stack at E:codemall-admin-webnode_modulesgraceful-fspolyfills.js:284:29
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (fs.js:183:21)
npm ERR! gyp ERR! System Windows_NT 10.0.14393
npm ERR! gyp ERR! command "E:\Program Files\nodejs\node.exe" "E:\code\mall-admin-web\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd E:codemall-admin-webnode_modulesnode-sass
npm ERR! gyp ERR! node -v v14.15.4
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersAdministratorAppDataLocalnpm-cache_logs2021-01-24T13_40_37_195Z-debug.log
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
应该是没有Python
看错误日志是你没有安装python
主要的原因是没有node-sass 但node-sass 是要node-gyp , 先能正常安装这两个,大概就没有问题了
查看: 为什么node-sass总是安装失败?