Error ETXTBSY text file is busy on npm install

0 votes

When running npm install [any package] or even npm install on homestead I get the following error:

npm ERR! ETXTBSY: text file is busy, rmdir '/home/vagrant/valemus-shop-starter/valemus-shop
/node_modules/fsevents'

I tried removing the fsevents directory, however, it doesn't exist.

How do I fix this?

Apr 14, 2020 in Laravel by kartik
• 37,520 points
1,823 views

1 answer to this question.

0 votes

Hello,

1.Make sure to update node to latest version

To update, you can install n

sudo npm install -g n

Then just :

sudo n latest

2.Set Node scripts to use environment variables across platforms

In vagrant run :

npm install --save-dev cross-env
npm install 
npm run dev 

Thank You!!

answered Apr 14, 2020 by Niroj
• 82,840 points

Related Questions In Laravel

+1 vote
3 answers

Error: Exception file_put_contents failed to open stream: No such file or directory in Laravel?

Hello, You should typically run the php artisan config:cache command ...READ MORE

answered Mar 31, 2020 in Laravel by Niroj
• 82,840 points
48,821 views
0 votes
1 answer

How can I install Laravel via Laravel Installer on Windows?

Hello, The PATH for Windows: I’ve found the location ...READ MORE

answered Mar 31, 2020 in Laravel by Niroj
• 82,840 points
1,604 views
+6 votes
2 answers

Error:Uncaught ReferenceError: is not defined at HTMLAnchorElement.onclick

The most common reason behind the error ...READ MORE

answered Dec 14, 2020 in Laravel by Gitika
• 65,770 points
66,209 views
0 votes
1 answer

Error:Laravel - Session store not set on request

Hello @kartik, You'll need to use the web middleware if ...READ MORE

answered Aug 4, 2020 in Laravel by Niroj
• 82,840 points
28,111 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,434 views
0 votes
1 answer
0 votes
1 answer

Error:Laravel [InvalidArgumentException] Script “post-install-cmd” is not defined in this package

Hello @kartik, Do composer global update before laravel new <project-name> and you'll ...READ MORE

answered Apr 6, 2020 in Laravel by Niroj
• 82,840 points
1,491 views
0 votes
1 answer

Error: Class 'SoapClient' not found in /home/user/mysite.com/path/to/file.php on line 16

Hello @kartik, find this line in php.ini : ;extension=soap then ...READ MORE

answered Oct 29, 2020 in Laravel by Niroj
• 82,840 points
3,385 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP