2017-08-27 93 views
-2

在Atom中安裝氫氣包時出現此錯誤。雖然在Atom文本編輯器中安裝的主題,我得到這個消息:在Atom文本編輯器中安裝主題失敗

Installing 「[email protected]」 failed.Hide output… 

gyp info it worked if it ends with ok 
gyp info using [email protected]`enter code here` 
gyp info using [email protected] | darwin | x64 
gyp http GET https://atom.io/download/electron/v1.6.9/iojs-v1.6.9.tar.gz 
gyp WARN install got an error, rolling back install 
gyp ERR! install error 
gyp ERR! stack Error: This is most likely not a problem with node-gyp or the package itself and 
gyp ERR! stack is related to network connectivity. In most cases you are behind a proxy or have bad 
gyp ERR! stack network settings. 
gyp ERR! stack  at Request.<anonymous> (/private/var/folders/1l/vxym0w453j30qk41zk061kg00000gn/T/AppTranslocation/7CF8217B-AC3A-4C87-92A8-DEC78EC13071/d/Atom.app/Contents/Resources/app/apm/node_modules/node-gyp/lib/install.js:193:21) 
gyp ERR! stack  at emitOne (events.js:96:13) 
gyp ERR! stack  at Request.emit (events.js:188:7) 
gyp ERR! stack  at Request.onRequestError (/private/var/folders/1l/vxym0w453j30qk41zk061kg00000gn/T/AppTranslocation/7CF8217B-AC3A-4C87-92A8-DEC78EC13071/d/Atom.app/Contents/Resources/app/apm/node_modules/request/request.js:884:8) 
gyp ERR! stack  at emitOne (events.js:96:13) 
gyp ERR! stack  at ClientRequest.emit (events.js:188:7) 
gyp ERR! stack  at TLSSocket.socketErrorListener (_http_client.js:310:9) 
gyp ERR! stack  at emitOne (events.js:96:13) 
gyp ERR! stack  at TLSSocket.emit (events.js:188:7) 
gyp ERR! stack  at connectErrorNT (net.js:1022:8) 
gyp ERR! System Darwin 16.7.0 
gyp ERR! command "/private/var/folders/1l/vxym0w453j30qk41zk061kg00000gn/T/AppTranslocation/7CF8217B-AC3A-4C87-92A8-DEC78EC13071/d/Atom.app/Contents/Resources/app/apm/bin/node" "/private/var/folders/1l/vxym0w453j30qk41zk061kg00000gn/T/AppTranslocation/7CF8217B-AC3A-4C87-92A8-DEC78EC13071/d/Atom.app/Contents/Resources/app/apm/node_modules/node-gyp/bin/node-gyp.js" "install" "--runtime=electron" "--target=1.6.9" "--dist-url=https://atom.io/download/electron" "--arch=x64" "--ensure" 
gyp ERR! cwd /Users/achal/.atom 
gyp ERR! node -v v6.9.5 
gyp ERR! node-gyp -v v3.4.0 
gyp ERR! not ok 
+0

由於錯誤提示,你有沒有嘗試改變網絡設置,你在代理後面嗎? – Malice

+0

否....沒有任何代理... –

+0

試試'wget https:// atom.io/download/electron/v1.6.9/iojs-v1.6.9.tar.gz'並查看它是否正常工作.. – Malice

回答

0

兩件事嘗試:

apm rebuild 

或者

apm install hydrogen