“错误:ETXTBSY”当在VirtualBox上安装npm(gruntjs,gulp)的软件包时 [英] "Error: ETXTBSY" when installing the package with npm (gruntjs, gulp) at VirtualBox
问题描述
我尝试通过npm安装gruntjs包,但是命令
npm install grunt --save-dev
收到错误:
npm ERR!错误回滚错误:ETXTBSY,取消链接'/home/me/www/public_html/test/try/node_modules/grunt/node_modules/lodash/lodash.js'
npm ERR!错误回滚grunt@0.4.4 {[错误:ETXTBSY,取消链接'/home/me/www/public_html/test/try/node_modules/grunt/node_modules/lodash/lodash.js']
npm ERR!错误回滚堆栈:错误:ETXTBSY,取消链接\'/ home / me / www / public_html / test / try / node_modules / grunt / node_modules / lodash / lodash.js\',
npm ERR!错误回滚errno:-26,
npm ERR!错误回滚代码:'ETXTBSY'
尝试安装gulp导致类似错误。
所有我在Ubuntu 12虚拟机上尝试的,我的主机系统是Windows 8。
> sudo npm install grunt -g
这对我有效,希望它对您有所帮助你可能会帮助的另一件事是避免符号链接创建,所以你可以键入
sudo npm install grunt -g --no-bin-link
I tried to install gruntjs package via npm, but the command
npm install grunt --save-dev
received an error:
npm ERR! error rolling back Error: ETXTBSY, unlink '/home/me/www/public_html/test/try/node_modules/grunt/node_modules/lodash/lodash.js'
npm ERR! error rolling back grunt@0.4.4 { [Error: ETXTBSY, unlink '/home/me/www/public_html/test/try/node_modules/grunt/node_modules/lodash/lodash.js']
npm ERR! error rolling back stack: 'Error: ETXTBSY, unlink \'/home/me/www/public_html/test/try/node_modules/grunt/node_modules/lodash/lodash.js\'',
npm ERR! error rolling back errno: -26,
npm ERR! error rolling back code: 'ETXTBSY'
Trying to install gulp led to a similar error.
All that I try on a virtual machine with Ubuntu 12, my host-system is Windows 8.
I was having the same issue and I`m also new to all of this, but I found somewhere else to type the following
sudo npm install grunt -g
This worked for me and hope it helps you
Another thing that might help would be to avoid symlink creations, so you would type
sudo npm install grunt -g --no-bin-link
这篇关于“错误:ETXTBSY”当在VirtualBox上安装npm(gruntjs,gulp)的软件包时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!