在mac終端運行 sudo npm install -g bower (安裝之前你要確定你已經成功安裝了node 和 git) 然後會報錯 like this: ...
在mac終端運行 sudo npm install -g bower
(安裝之前你要確定你已經成功安裝了node 和 git)
然後會報錯 like this:
npm ERR! Darwin 15.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "install" "-g" "bower" npm ERR! node v5.2.0 npm ERR! npm v3.3.12 npm ERR! path /Users/path-to-directory/node_modules/npm/node_modules/rimraf/bin.js
...npm ERR!
shasum check failed for /tmp/npm-12464-50e9876a/registry.npmjs.org/bower/-/bower-1.8.0.tgz
xcodebuild -license
...
解決辦法:
先在終端運行:
再運行:sudo npm install -g bower