win10装electronicWechat失败
python & nodejs 都在 %PATH% 环境变量里
cmd 运行 npm install 没反应
msys 运行 npm install 先提示找不到 python.EXE , 我就把 python.exe 文件扩展名 改成大写了, 然而还是报错啊, 超时是个什么原因。。。
Z@w10x64ltsb-dell /d/electronic-wechat-master
$ npm install
> nodejieba@2.2.5 install d:\electronic-wechat-master\node_modules\nodejieba
> node-gyp rebuild
d:\electronic-wechat-master\node_modules\nodejieba>if not defined npm_config_node_gyp (node "d:\node-v8.11.1-win-x64\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "d:\node-v8.11.1-win-x64\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "d:\python\python-3.6.5-embed-amd64\python.EXE", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (d:\node-v8.11.1-win-x64\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (d:\node-v8.11.1-win-x64\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at d:\node-v8.11.1-win-x64\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "d:\\node-v8.11.1-win-x64\\node.exe" "d:\\node-v8.11.1-win-x64\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd d:\electronic-wechat-master\node_modules\nodejieba
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
> electron@1.4.15 postinstall d:\electronic-wechat-master\node_modules\electron
> node install.js
Z@w10x64ltsb-dell /d/electronic-wechat-master
$ npm install
> electron@1.4.15 postinstall d:\electronic-wechat-master\node_modules\electron
> node install.js
d:\electronic-wechat-master\node_modules\electron\install.js:46
throw err
^
Error: connect ETIMEDOUT 54.231.82.106:443
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.4.15 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.4.15 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Z\AppData\Roaming\npm-cache\_logs\2018-04-15T15_57_01_564Z-debug.log