1.經過npm安裝hexo運行命令:sudo npm install -g hexo
出現這個問題:
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "hexo"
npm ERR! node v4.3.1
npm ERR! npm v2.14.12
npm ERR! Expected: 8bcc28975ebaa636c8d9594868240727aadc734f
npm ERR! Actual: b55050ca5bc5dcb19fca81038035a11ce0b53671
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! Please include the following file with any support request:
npm ERR! /Users/mmwang/npm-debug.log
解決辦法是:運行以下方法清除緩存後再次安裝。
npm cache clear telegram-promise
npm cache clear
2.出現以下錯誤提醒:
{ [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