安装过程中的问题

代理未设置

MINGW64link
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 $ npm install -g hexo
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\

<!-- more --> node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "hexo"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo

npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org
registry.npmjs.org: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:E:\blog\npm-debug.log

解决办法

$ npm config set registry http://registry.npmjs.org/

在安装hexo的过程中,需要从github上面拷贝一个项目,结果在克隆的时候git报了个错:

fatal: unable to access 'https://github.com/hexojs/hexo-starter.git': Protocol https not supported or disabled in libcurl

解决办法(暂时)

将libcurl.dll 添加一个后缀名
C:\Windows\SysWOW64\libcurl.dll.old

热评文章