无法在mac上安装离子:意外的eof

时间:2015-11-28 13:19:04

标签: macos cordova npm ionic-framework ionic

我在安装ionic时遇到问题。

已安装Cordova,但我仍然收到以下错误。

Bankims-MacBook-Pro:Documents bankimdebnath$ sudo npm install -g cordova ionic

tar.unpack untar error /tmp/npm-776-1c23f39a/registry.npmjs.org/winston/-/winston-1.1.2.tgz
tar.unpack untar error /tmp/npm-776-1c23f39a/registry.npmjs.org/lodash/-/lodash-3.10.1.tgz
tar.unpack untar error /tmp/npm-776-1c23f39a/registry.npmjs.org/lodash/-/lodash-2.4.2.tgz
Darwin 15.0.0
argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
node v4.2.2
npm v3.5.0
unexpected eof

If you need help, you may report this error at:
https://github.com/npm/npm/issues
Please include the following file with any support request:
/Documents/npm-debug.log

Bankims-MacBook-Pro:Documents bankimdebnath$

1 个答案:

答案 0 :(得分:0)

尝试删除npm包文件夹并再次安装npm。

如果没有尝试将降级节点尝试到0.10.x版本。