2016-04-09 154 views
0

我跟着MEAN Official Documentation在我的Ubuntu 14.04 x64位机器上安装MEAN。 一切顺利,直到我到达npm install部分的文档描述。当我运行该命令时出现以下错误:MEAN npm install

npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/hooker/-/hooker-0.2.3.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/hooker/-/hooker-0.2.3.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/jshint/-/jshint-2.8.0.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/bower/-/bower-1.4.1.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/bower/-/bower-1.4.1.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/mongoose/-/mongoose-4.3.3.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.11.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/swig/-/swig-1.4.2.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/lodash/-/lodash-2.4.2.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/hawk/-/hawk-1.1.1.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/hawk/-/hawk-1.1.1.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/bluebird/-/bluebird-2.9.34.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/coffee-script/-/coffee-script-1.3.3.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/tough-cookie/-/tough-cookie-2.0.0.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/tough-cookie/-/tough-cookie-2.0.0.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/uglify-js/-/uglify-js-2.4.24.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/uglify-js/-/uglify-js-2.4.24.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/npm/-/npm-2.13.5.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/npm/-/npm-2.13.5.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/hawk/-/hawk-3.1.0.tgz 
npm ERR! tar.unpack untar error /tmp/npm-7892-4a9f0047/registry.npmjs.org/hawk/-/hawk-3.1.0.tgz 

而且进程并未停止。没有错误记录什么。

node -v回报v4.4.2 mean -v回报0.11.1 我已经尝试npm cache clean以及试图从头开始,但没有运气安装节点。

+0

你有足够多的'/ tmp'空间? – demas

+0

在我的'/'上有19.4GB,'/ tmp'只用了23.9MB。我想这应该不成问题。 – nipunshakya

+0

有一个问题https://github.com/npm/npm/issues/5133。尝试使用'npm cache clean' +'npm update' +'npm install' – demas

回答

0

我想你应该尝试使用sudo

+0

nope。 'sudo npm install'没有成功。我得到了同样的错误... – nipunshakya

+0

检查您在该文件夹中的权限,但应该与sudo一起工作...您可以尝试无论如何 –

+0

没有权限问题。我认为这不是问题。 – nipunshakya