Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm install fsevents errors

Tags:

node.js

npm

Hello i'am trying to install fsevents whitch npm. Therefore i use the following versions:

  • Node : 4.2.6

  • NPM : 3.5.2

  • OS : Ubuntu 16.04 LTS

    i 'am executing the statement

Edited

npm install fsevents --no-optional --save react-redux

after executing i get the following errors back in the console

Edited

npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "fsevents" "--no-
optional" "--save" "react-redux"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code EBADPLATFORM

npm ERR! notsup Not compatible with your operating system or  
architecture: [email protected]
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR!     /home/erik/git/test/npm-debug.log

Please can you help fix this problem.

Manny thanks

Erik

like image 357
Erik hoeven Avatar asked Nov 18 '16 07:11

Erik hoeven


People also ask

How to avoid NPM install FSEvents is optional?

As the above error message states that fsevents is optional and it is skipped in installation process. You can run npm install --no-optional command in linux system to avoid above warning. Show activity on this post.

How to install FSEvents in Linux system?

Linux system ignores fsevents whereas mac install it. As the above error message states that fsevents is optional and it is skipped in installation process. You can run npm install --no-optional command in linux system to avoid above warning.

How to disable NPM warning when installing a package?

You can run npm install --no-optional command in linux system to avoid above warning. Show activity on this post. If you want to hide this warn, you just need to install fsevents as a optional dependency. Just execute: ..And the warn will no longer be a bother. Show activity on this post.

Where can I find the NPM err log?

npm ERR! A complete log of this run can be found in: npm ERR! C:UsersNishantAppDataRoamingnpm-cache_logs2020-05-28T05_24_12_995Z-debug.log × Package install failed, see above.


2 Answers

The comments above tell you what you already know. Perhaps you should've phrased this as a question. :-)

Assuming the question is how to prevent fserrors on a non-Mac system, the solution I found is this:

Remove fserrors from your package.json and remove the folder.

rm -r ./node_modules/fserrors

Then run:

npm rebuild

Problem solved.

like image 136
texelate Avatar answered Oct 10 '22 04:10

texelate


I added the following to my package.json file:

"optionalDependencies": {
  "fsevents": "2.1.2"
},

Then run npm rebuild (or wait for the next time you need the npm command) and the warning is gone.

like image 30
matthiku Avatar answered Oct 10 '22 04:10

matthiku