当前位置| 科技 > > 列表>详情

​Linux是什么?linux+npm+v+报错的原因解释和问题解决尝试是?

2022-12-15 09:37:55 来源:亚洲网

​Linux是什么?

Linux,全称GNU/Linux,是一种免费使用和自由传播的类UNIX操作系统,其内核由林纳斯·本纳第克特·托瓦兹于1991年10月5日首次发布,它主要受到Minix和Unix思想的启发,是一个基于POSIX的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的Unix工具软件、应用程序和网络协议。

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

标签: 免费使用 自由传播的类UNIX操作系统