linux+npm+v+报错_linux – npm install会导致像npm ERR这样的错误...

如图所示安装Grunt,我首先使用npm install -g grunt-cli全局安装了grunt-cli,现在我正在尝试执行npm install,但只是出错:

root@devvm:/var/www/axit/portfolio/public/bower_components/bootstrap# npm install

npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz

npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz

npm ERR! tar.unpack untar error /root/.npm/brace-expansion/1.1.0/package.tgz

npm ERR! tar.unpack untar error /root/.npm/delayed-stream/0.0.5/package.tgz

npm WARN optional dep failed, continuing form-data@0.1.4

npm ERR! tar.unpack untar error /root/.npm/is-property/1.0.2/package.tgz

npm WARN optional dep failed, continuing request@2.54.0

npm ERR! Linux 3.2.0-4-amd64

npm ERR! argv "node" "/usr/local/bin/npm" "install"

npm ERR! node v0.10.35

npm ERR! npm v2.7.4

npm ERR! path /var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-saucelabs/node_modules/sauce-tunnel/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js

npm ERR! code EPERM

npm ERR! errno 50

npm ERR! Error: EPERM, open '/var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-saucelabs/node_modules/sauce-tunnel/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js'

npm ERR! { [Error: EPERM, open '/var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-saucelabs/node_modules/sauce-tunnel/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js']

npm ERR! errno: 50,

npm ERR! code: 'EPERM',

npm ERR! path: '/var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-saucelabs/node_modules/sauce-tunnel/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js' }

npm ERR!

npm ERR! Please try running this command again as root/Administrator.

npm ERR! Linux 3.2.0-4-amd64

npm ERR! argv "node" "/usr/local/bin/npm" "install"

npm ERR! node v0.10.35

npm ERR! npm v2.7.4

npm ERR! path npm-debug.log.ba707f2a7a688e388708bbe88e2dd4ed

npm ERR! code ETXTBSY

npm ERR! errno 62

npm ERR! ETXTBSY, rename 'npm-debug.log.ba707f2a7a688e388708bbe88e2dd4ed'

npm ERR!

npm ERR! If you need help, you may report this error at:

npm ERR!

npm ERR! Please include the following file with any support request:

npm ERR! /var/www/axit/portfolio/public/bower_components/bootstrap/npm-debug.log

我刚刚将项目复制到非共享文件夹中,然后再次启动npm install.它奏效了.所以,它似乎是一个共享文件夹问题.但到底是什么? Symlinks are enabled对于这个共享文件夹,我以管理员身份启动了VM(当我在安装Bower时出现类似问题时,它有所帮助).

是什么导致了这些错误以及如何解决这个问题?

Environment: VirtualBox with Debian guest system and Windows 7 host system.

编辑

现在(我想我在非共享文件夹中成功执行了npm安装后)我发现了不同的错误:

当我以常见方式启动VM时:

root@devvm:/var/www/axit/portfolio/public/bower_components/bootstrap# npm install

npm ERR! tar.unpack untar error /root/.npm/delayed-stream/0.0.5/package.tgz

npm WARN optional dep failed, continuing form-data@0.1.4

npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz

npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz

npm ERR! tar.unpack untar error /root/.npm/brace-expansion/1.1.0/package.tgz

npm ERR! Linux 3.2.0-4-amd64

npm ERR! argv "node" "/usr/local/bin/npm" "install"

npm ERR! node v0.10.35

npm ERR! npm v2.7.4

npm ERR! path ../semver/bin/semver

npm ERR! code UNKNOWN

npm ERR! errno -1

npm ERR! UNKNOWN, symlink '../semver/bin/semver'

npm ERR!

npm ERR! If you need help, you may report this error at:

npm ERR!

npm ERR! Linux 3.2.0-4-amd64

npm ERR! argv "node" "/usr/local/bin/npm" "install"

npm ERR! node v0.10.35

npm ERR! npm v2.7.4

npm ERR! path npm-debug.log.428531818e2d916d5ae79bdf94dd73b3

npm ERR! code ETXTBSY

npm ERR! errno 62

npm ERR! ETXTBSY, rename 'npm-debug.log.428531818e2d916d5ae79bdf94dd73b3'

npm ERR!

npm ERR! If you need help, you may report this error at:

npm ERR!

npm ERR! Please include the following file with any support request:

npm ERR! /var/www/axit/portfolio/public/bower_components/bootstrap/npm-debug.log

当我以管理员身份启动VM时:

root@devvm:/var/www/axit/portfolio/public/bower_components/bootstrap# npm install

npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz

npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz

npm ERR! tar.unpack untar error /root/.npm/delayed-stream/0.0.5/package.tgz

npm ERR! tar.unpack untar error /root/.npm/brace-expansion/1.1.0/package.tgz

npm WARN optional dep failed, continuing form-data@0.1.4

npm ERR! Linux 3.2.0-4-amd64

npm ERR! argv "node" "/usr/local/bin/npm" "install"

npm ERR! node v0.10.35

npm ERR! npm v2.7.4

npm ERR! path /var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/fs-extra/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy

npm ERR! code UNKNOWN

npm ERR! errno -1

npm ERR! UNKNOWN, mkdir '/var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/fs-extra/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy'

npm ERR!

npm ERR! If you need help, you may report this error at:

npm ERR!

npm ERR! Linux 3.2.0-4-amd64

npm ERR! argv "node" "/usr/local/bin/npm" "install"

npm ERR! node v0.10.35

npm ERR! npm v2.7.4

npm ERR! path npm-debug.log.0bb66467f3aae813a34e03a797f8da19

npm ERR! code ETXTBSY

npm ERR! errno 62

npm ERR! ETXTBSY, rename 'npm-debug.log.0bb66467f3aae813a34e03a797f8da19'

npm ERR!

npm ERR! If you need help, you may report this error at:

npm ERR!

npm ERR! Please include the following file with any support request:

npm ERR! /var/www/axit/portfolio/public/bower_components/bootstrap/npm-debug.log

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值