标签:
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
『奇葩问题集锦』npm install 报错 node-pre-gyp ERR! node-pre-gyp -v v0.6.25
标签:
原文地址:http://www.cnblogs.com/guxuelong/p/5395992.html