安装node-sass是不是要先安装python呀,命令行提示我要 装这个
来源:3-3 使用 Loader 打包静态资源(样式篇 - 上)
 
			qq_流年_170
2020-01-27
gyp ERR! stack Error: Can’t find Python executable “python”, you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\hu_cx\Desktop\webpack_test\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack     at PythonFinder. (C:\Users\hu_cx\Desktop\webpack_test\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack     at callback (C:\Users\hu_cx\Desktop\webpack_test\node_modules\graceful-fs\polyfills.js:295:20)
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:154:21)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “D:\Program Files\nodejs\node.exe” “C:\Users\hu_cx\Desktop\webpack_test\node_modules\node-gyp\bin\node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” "–libsass_library="
gyp ERR! cwd C:\Users\hu_cx\Desktop\webpack_test\node_modules\node-sass
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
2回答
- 
				
				你换cnpm,重新装依赖 022020-01-28
- 
				  呀呀呀亚歌 2020-05-05 有点问题(思考 试了一圈,还是cnpm吧 npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm install -D node-sass 
 00
相似问题
 
						