npm err node-sass,npm err gyp

npm ERR! code 1
npm ERR! path D:\Program Files (x86)\myProject\mtmj-manage-system\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe D:\Program Files (x86)\myProject\mtmj-manage-system\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok

 

 

 

 

安装python

地址 https://www.python.org/downloads/release

找最新的版本安装,对应你系统的版本安装,记住安装路径,等一下要设置系统环境变量

 

 设置环境变量

 

 

 如果在命令行 输入python 还是显示命令不存在的话,就以管理员身份打开命令行

 

再执行 npm install 又是一堆错误

烦了

卸载node-sas

npm uninstall node-sass

安装node-sass

npm install node-sass

 

好了,呵呵!那么继续开心地踩坑吧......

 

posted @ 2022-02-17 15:44  拥抱孜然味的美好生活  阅读(441)  评论(0)    收藏  举报