2016-04-09 198 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