日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 >

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

發(fā)布時(shí)間:2025/3/15 43 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux+npm+v+报错_linux – npm install会导致像npm ERR这样的错误... 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

如圖所示安裝Grunt,我首先使用npm install -g grunt-cli全局安裝了grunt-cli,現(xiàn)在我正在嘗試執(zhí)行npm install,但只是出錯(cuò):

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

我剛剛將項(xiàng)目復(fù)制到非共享文件夾中,然后再次啟動(dòng)npm install.它奏效了.所以,它似乎是一個(gè)共享文件夾問題.但到底是什么? Symlinks are enabled對(duì)于這個(gè)共享文件夾,我以管理員身份啟動(dòng)了VM(當(dāng)我在安裝Bower時(shí)出現(xiàn)類似問題時(shí),它有所幫助).

是什么導(dǎo)致了這些錯(cuò)誤以及如何解決這個(gè)問題?

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

編輯

現(xiàn)在(我想我在非共享文件夾中成功執(zhí)行了npm安裝后)我發(fā)現(xiàn)了不同的錯(cuò)誤:

當(dāng)我以常見方式啟動(dòng)VM時(shí):

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

當(dāng)我以管理員身份啟動(dòng)VM時(shí):

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

總結(jié)

以上是生活随笔為你收集整理的linux+npm+v+报错_linux – npm install会导致像npm ERR这样的错误...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。