Node.js npm cannot install fsevents node modules

Possibly save 1 hour of your time: When you want to use node.js npm package manager to install dependencies, you may encounter the following error when you run:

  npm install

fsevents node_modules.png

Check your npm version:

  npm -v

Revert to a version that works. I am using npm 5.0.4:

npm i -g npm@5.0.4

You can also check your any version dependency at global level:

  npm list -g

If the above doesn’t work, then you can upgrade npm version to latest as follows:

  npm install npm@latest -g

Related resource: https://github.com/npm/npm/issues/17671

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s