PS E:\code\mall-admin-web> npm install 失败了咋整??

源码节点 发布于 01/24 21:44
阅读 248
收藏 0

PS E:\code\mall-admin-web> npm install  失败了咋整??

++

 

S E:\code\mall-admin-web> npm install --registry=https://registry.npm.taobao.org
npm ERR! code 1
npm ERR! path E:\code\mall-admin-web\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.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:\code\mall-admin-web\node_modules\node-gyp\lib\configure.js:484:19)
npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (E:\code\mall-admin-web\node_modules\node-gyp\lib\configure.js:509:16)
npm ERR! gyp ERR! stack     at E:\code\mall-admin-web\node_modules\graceful-fs\polyfills.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:\code\mall-admin-web\node_modules\node-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:\Users\Administrator\AppData\Local\npm-cache\_logs\2021-01-24T13_40_37_195Z-debug.log

加载中
1
安宇雨
安宇雨

npm install -g node-sass
 

1
安宇雨
安宇雨

npm install -g node-gyp

npm install -g node-sass
 

1
安宇雨
安宇雨

主要的原因是没有node-sass 但node-sass 是要node-gyp , 先能正常安装这两个,大概就没有问题了

0
thatgame
thatgame

看错误日志是你没有安装python

0
宗人府1992
宗人府1992

应该是没有Python

OSCHINA
登录后可查看更多优质内容
返回顶部
顶部