2016-02-09 41 views
0

經過多次嘗試後,我不再放棄使用餘燼測試...OS X無法安裝餘燼cli在所有

1 /我得到了npm ERR!註冊表錯誤解析兒子

2 /然後我得到

node -v 
v4.2.6 
nam -v 
2.14.12 

npm install -g ember-cli 
npm ERR! registry error parsing json 
npm ERR! registry error parsing json 
npm ERR! Darwin 15.3.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ember-cli" 
npm ERR! node v4.2.6 
npm ERR! nam v2.14.12 
npm ERR! Unexpected end of input 
... long JSON object .. 

回答

0

終於得到它通過之前運行安裝的輸入的n期望結束:然後

$ npm install -g [email protected] 

安裝正確結束

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

,除「標準」裝載棄用外...

npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade to [email protected]^4.0.0 
npm WARN deprecated [email protected]: This package has been discontinued in favor of [email protected]^4.0.0 
npm WARN deprecated [email protected]: This package has been discontinued in favor of [email protected]^4.0.0 

/Users/yves/.node/bin/ember - > /Users/yves/.node/lib/node_modules/ember-cli/bin/ember