每一首诗的背后
都有个爱过的女孩.
每一次爱,
都有相似的温柔。

ATOM windows error

C:\Users\pt100314\.atom>apm install editor-stats --unsafe Installing editor-stats toC:\Users\pt100314\.atom\packages gyp info it worked if it ends with ok gyp info using node-gyp@2.0.2gyp info using node@0.10.40 | win32 | ia32 gyp http GET https://atom.io/download/atom-shell/v0.34.5/node-v0.34.5.tar.gz gyp WARN install got an error, rolling back install gyp

从这个打印上看,应当是gyp没法完成http GET(没法完成atom.io的302重定向) 
这里有1个临时的解决方案,就是把ATOM_NODE_URL环境变量设为重定向以后的Url :

Windows temporary:

set ATOM_NODE_URL=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist

Windows permanently (execute “cmd” with “Run as Administrator”):

setx ATOM_NODE_URL https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist /M

Linux:

export ATOM_NODE_URL=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist


评论

© 性冷淡患者,J | Powered by LOFTER