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 in Laravel by kartik
• 26,540 points
98 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 by Niroj
• 57,260 points

Related Questions In Laravel

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 in Laravel by Niroj
• 57,260 points
159 views
+4 votes
1 answer

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

Hello, With my limited understanding, I tried to ...READ MORE

answered Apr 14 in Laravel by Niroj
• 57,260 points
9,322 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 in Laravel by Niroj
• 57,260 points
275 views
0 votes
1 answer
+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 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,349 views
0 votes
0 answers
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 in Laravel by Niroj
• 57,260 points
112 views
+1 vote
2 answers