2017-09-04 56 views
3

嘗試使用laravel-mix,但是當我嘗試npm install或npm install --no-bin-links或sudo npm install時,我在下面得到這個錯誤。 。我在Windows 8.1上使用宅基地和流浪漢..請任何幫助在這NPM安裝失敗,ETXTBSY錯誤,文本文件很忙

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 
+0

您是否嘗試重新啓動流浪機? –

+0

你有沒有找到解決這個問題的方法。我面臨同樣的問題。我嘗試了下面鏈接中提到的一切。 https://github.com/npm/npm/issues/992 – Vishakha

回答

3

我有同樣的問題,不能讓npm工作。

嘗試使用yarn

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