参考:http://blog.csdn.net/qq_26819733/article/details/55549241?locationNum=11&fps=1
当github上下载别人的vue项目时候,在npm install 时候报错,亲测已解决
npm install -g grunt-node-inspector  


偶见另一方法:http://www.mamicode.com/info-detail-1281665.html  未测试。不知是否可行。

 
 
gyp ERR! configure error
gyp ERR! stack Error: Can‘t find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Users\guxuelong\Desktop\dragon-ui\node_modules\.npminstall\node-gyp\3.3.1\node-gyp\lib\configure.js:401:14)
gyp ERR! stack     at C:\Users\guxuelong\Desktop\dragon-ui\node_modules\.npminstall\node-gyp\3.3.1\node-gyp\lib\configure.js:356:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\guxuelong\\Desktop\\dragon-ui\\node_modules\\.npminstall\\node-gyp\\3.3.1\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\guxuelong\\Desktop\\dragon-ui\\node_modules\\.npminstall\\fsevents\\1.0.11\\fsevents\\lib\\binding\\Release\\node-v47-win32-x64\\fse.node" "--module_name=fse" "--module_path=C:\\Users\\guxuelong\\Desktop\\dragon-ui\\node_modules\\.npminstall\\fsevents\\1.0.11\\fsevents\\lib\\binding\\Release\\node-v47-win32-x64"
gyp ERR! cwd C:\Users\guxuelong\Desktop\dragon-ui\node_modules\.npminstall\fsevents\1.0.11\fsevents
gyp ERR! node -v v5.10.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok

  

安装并设定一个符合的python版本

npm install --python=python2.7
npm config set python python2.7


未测。
Logo

前往低代码交流专区

更多推荐