node --version v6.9.5 npm --version 3.10.10 git --version git version 2.10.1 (Apple Git-78)
这些都装好了
2楼 @tinyfool npm ERR! Darwin 16.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "hexo-cli" npm ERR! node v6.9.5 npm ERR! npm v3.10.10 npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT 151.101.24.162:443 npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request: npm ERR! /Users/chenjunfeng/npm-debug.log 网络问题吗? 我网络使用的代理 访问都正常啊
你命令行用没有代理?你
echo $http_proxy
echo $https_proxy
这样执行一下看看结果,如果是空的,说明你命令行没有挂代理
挂代理的语法是
export http_proxy=http://127.0.0.1:8016
export https_proxy=http://127.0.0.1:8016