- hexo静态页面css加载失败
- hexo deploy出现这个:
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
npm install hexo --no-optional
npm uninstall hexo-cli -g #3.0.0版本执行
npm uninstall hexo -g #之前版本执行
配置国内npm数据源并重新安装hexo cli:
npm --registry https://registry.npm.taobao.org
npm install hexo-cli -g
npm install
hexo server
- 卸载npm,再用国内源重装npm依旧报错,且卸载hexo再装这个办法无效
sudo npm uninstall npm -g
rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
export PATH="/usr/local/bin:$PATH"
brew link node
brew link
step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link node'
chown -R <yourusername>:<yourgroupname> systemtap
npm update
sudo npm install --unsafe-perm --verbose -g hexo
npm ERR! Darwin 13.4.0
npm ERR! argv "/usr/local/Cellar/node/7.1.0/bin/node" "/usr/local/bin/npm" "install" "--unsafe-perm" "--verbose" "-g" "hexo"
npm ERR! node v7.1.0
npm ERR! npm v3.10.9
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! network getaddrinfo ENOTFOUND registry.npm.taobao.orgnpm registry.npm.taobao.orgnpm: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 verb exit [ 1, true ]
npm ERR! Please include the following file with any support request:
npm ERR! /Users/ericeracy/npm-debug.log
hexo init blog
cd blog
npm install
hexo server
hexo generate
hexo deploy