NPM安装失败并出现ETXTBSY错误,文本文件正忙

时间:2017-09-04 17:34:46

标签: laravel npm vagrant homestead laravel-mix

尝试使用laravel-mix,但是当我尝试npm install,或者npm install --no-bin-links,或sudo npm install时,我在下面收到此错误..我在使用宅基地和流浪汉的Windows 8.1 ..请帮忙解决这个问题

npm WARN ETXTBSY: text file is busy, unlink '/home/vagrant/blog/mix/node_modules/abbrev/package.json.78971974'
npm ERR! path /home/vagrant/blog/mix/node_modules/acorn-dynamic-import/package.json.247239
npm ERR! code ETXTBSY
npm ERR! errno -26
npm ERR! syscall rename
npm ERR! ETXTBSY: text file is busy, rename '/home/vagrant/blog/mix/node_modules/acorn-dynamic-import/package.json.247239' -> '/home/vagrant/blog/mix/node_modules/acorn-dynamic-import/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2017-09-04T00_51_52_140Z-debug.log

1 个答案:

答案 0 :(得分:10)

我有同样的问题,无法让npm工作。

尝试使用yarn

homestead ssh
sudo npm install -g yarn
cd blog/mix
yarn install