安裝業力雖然試圖使用命令無法在Ubuntu
sudo npm install -g karma
遇到錯誤安裝Ubuntu的業力像
npm ERR! at Object.parse (native)
npm ERR! at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:238:23)
npm ERR! at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/index.js:148:22)
npm ERR! at Request.EventEmitter.emit (events.js:98:17)
npm ERR! at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/index.js:876:14)
npm ERR! at Request.EventEmitter.emit (events.js:117:20)
npm ERR! at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/index.js:827:12)
npm ERR! at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR! at _stream_readable.js:910:16
npm ERR! at process._tickCallback (node.js:415:13)
而像
npm ERR! registry error parsing json
的一些誤區
它並沒有得到安裝。任何幫助將不勝感激。我的node.js version is v0.10.13
爲我工作。在這裏更詳細地介紹如何在沒有apt-get的情況下安裝節點http://davidtsadler.com/archives/2012/05/06/installing-node-js-on-ubuntu/ – andistuder
很棒..另一種選擇是使用PPA chris-lea:https://launchpad.net/~chris-lea/+archive/node.js/ –