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 :(得分:0)
最后通过运行安装它:
npm config set registry http://registry.npmjs.org
然后
$ npm install -g ember-cli@latest
安装正确结束,除了"标准"不推荐加载...
npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0
npm WARN deprecated lodash-node@2.4.1: This package has been discontinued in favor of lodash@^4.0.0
npm WARN deprecated lodash-node@3.10.2: This package has been discontinued in favor of lodash@^4.0.0
/Users/yves/.node/bin/ember - &gt; /Users/yves/.node/lib/node_modules/ember-cli/bin/ember