Hexo China Decentralizing

Atom 新手 安装插件 terminal plus/hydrogen 失败


#1

安装Terminal Plus 或者 Hydrogen 或者ipython Juptyernotebook

都会出现类似的错误. 已经被折磨的不行了. 真心求解:
Installing “Hydrogen@0.15.0” failed.Hide output…
INFO: Could not find files for the given pattern(s).
The system cannot find the file specified.

zmq@2.15.3 install C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-6496-171yq37\node_modules\Hydrogen\node_modules\zmq
node-gyp rebuild
C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-6496-171yq37\node_modules\Hydrogen\node_modules\zmq>if not defined npm_config_node_gyp (node “C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\npm\bin\node-gyp-bin\…\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\bin\…\node_modules\node-gyp\bin\node-gyp.js” rebuild )
C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-6496-171yq37
-- (empty) gyp ERR! configure error gyp ERR! stack Error: Python executable "C:\Program Files (x86)\Python35-32\python.EXE" is v3.5.2, which is not supported by gyp. gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0. gyp ERR! stack at failPythonVersion (C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\node-gyp\lib\configure.js:454:14) gyp ERR! stack at C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\node-gyp\lib\configure.js:443:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:204:7) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at maybeClose (internal/child_process.js:827:16) gyp ERR! stack at Socket.<anonymous> (internal/child_process.js:319:11) gyp ERR! stack at emitOne (events.js:77:13) gyp ERR! stack at Socket.emit (events.js:169:7) gyp ERR! stack at Pipe._onclose (net.js:477:12) gyp ERR! System Windows_NT 10.0.14393 gyp ERR! command "C:\\Users\\JTK\\AppData\\Local\\atom\\app-1.11.2\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\JTK\\AppData\\Local\\atom\\app-1.11.2\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-6496-171yq37\node_modules\Hydrogen\node_modules\zmq gyp ERR! node -v v4.4.5 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-6496-171yq37\package.json' npm WARN apm-install-dir-116104-6496-171yq37 No description npm WARN apm-install-dir-116104-6496-171yq37 No repository field. npm WARN apm-install-dir-116104-6496-171yq37 No README data npm WARN apm-install-dir-116104-6496-171yq37 No license field. npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Users\\JTK\\AppData\\Local\\atom\\app-1.11.2\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\JTK\\AppData\\Local\\atom\\app-1.11.2\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\JTK\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\JTK\\.atom\\.apmrc" "install" "C:\\Users\\JTK\\AppData\\Local\\Temp\\d-116104-6496-k2edkg\\package.tgz" "--runtime=electron" "--target=0.37.8" "--arch=ia32" "--global-style" npm ERR! node v4.4.5 npm ERR! npm v3.10.5 npm ERR! code ELIFECYCLE npm ERR! zmq@2.15.3 install:node-gyp rebuildnpm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zmq@2.15.3 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the zmq package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs zmq npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls zmq npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-6496-171yq37\npm-debug.log npm ERR! code 1 ########################################################################################################### Installing “jupyter-notebook@0.0.9” failed.Hide output… INFO: Could not find files for the given pattern(s). The system cannot find the file specified. bufferutil@1.2.1 install C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-13288-suggzz\node_modules\jupyter-notebook\node_modules\bufferutil node-gyp rebuild C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-13288-suggzz\node_modules\jupyter-notebook\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) runas@3.1.1 install C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-13288-suggzz\node_modules\jupyter-notebook\node_modules\runas node-gyp rebuild C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-13288-suggzz\node_modules\jupyter-notebook\node_modules\runas>if not defined npm_config_node_gyp (node "C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-13288-suggzz– (empty)
gyp ERR! configure error
gyp ERR! stack Error: Python executable “C:\Program Files (x86)\Python35-32\python.EXE” is v3.5.2, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\node-gyp\lib\configure.js:454:14)
gyp ERR! stack at C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\node-gyp\lib\configure.js:443:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:204:7)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at maybeClose (internal/child_process.js:827:16)
gyp ERR! stack at Socket. (internal/child_process.js:319:11)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at Socket.emit (events.js:169:7)
gyp ERR! stack at Pipe._onclose (net.js:477:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command “C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\bin\node.exe” “C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-13288-suggzz\node_modules\jupyter-notebook\node_modules\bufferutil
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN install:bufferutil@1.2.1 bufferutil@1.2.1 install: node-gyp rebuild
npm WARN install:bufferutil@1.2.1 Exit status 1
gyp ERR! configure error
gyp ERR! stack Error: Python executable “C:\Program Files (x86)\Python35-32\python.EXE” is v3.5.2, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\node-gyp\lib\configure.js:454:14)
gyp ERR! stack at C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\node-gyp\lib\configure.js:443:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:204:7)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at maybeClose (internal/child_process.js:827:16)
gyp ERR! stack at Socket. (internal/child_process.js:319:11)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at Socket.emit (events.js:169:7)
gyp ERR! stack at Pipe._onclose (net.js:477:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command “C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\bin\node.exe” “C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-13288-suggzz\node_modules\jupyter-notebook\node_modules\runas
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-13288-suggzz\package.json’
npm WARN apm-install-dir-116104-13288-suggzz No description
npm WARN apm-install-dir-116104-13288-suggzz No repository field.
npm WARN apm-install-dir-116104-13288-suggzz No README data
npm WARN apm-install-dir-116104-13288-suggzz No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv “C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\bin\node.exe” “C:\Users\JTK\AppData\Local\atom\app-1.11.2\resources\app\apm\node_modules\npm\bin\npm-cli.js” “–globalconfig” “C:\Users\JTK\.atom\.apm\.apmrc” “–userconfig” “C:\Users\JTK\.atom\.apmrc” “install” “C:\Users\JTK\AppData\Local\Temp\d-116104-13288-2l2g1d\package.tgz” “–runtime=electron” “–target=0.37.8” “–arch=ia32” “–global-style”
npm ERR! node v4.4.5
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! runas@3.1.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the runas@3.1.1 install script ‘node-gyp rebuild’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs runas
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls runas
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\JTK\AppData\Local\Temp\apm-install-dir-116104-13288-suggzz\npm-debug.log
npm ERR! code 1


#2

问题解决了.
需要重新安装nood.js,git
然后在CMD 用apm -v 确认
apm
npm
python
git
visual studio 2015 都已经安装好了
然后用git cmd +系统权限:
配置
apm config set msvs_version 2015
apm config set python python2.7
再安装iPython AKA jupyter notebook.
再安装Hydrogen

主要是参考这边文章:


#3

嗯,我也没安上


#4

我在packages中已经安装了 但是怎么调用呢?


#5

安装完插件 hydrogen 后,运行出现错误提示:

No kernel for grammar Null Grammar found
Check that the language for this file is set in Atom, that you have a Jupyter kernel installed for it, and that you have configured the language mapping in Hydrogen preferences.