解决办法: 用管理员身份运行cmd,并输入: 1、
npm install -g mirror-config-china --registry=http://registry.npm.taobao.org
2、
npm install node-sass
如何用管理员身份运行cmd: 运行效果: 错误信息:
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\eclipse-workspace\henenghome\material-center-vue-test\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
|