2

it seems that install fails mainly cause fsevents not supported, this my shell responses

npm install -g pm2 
...
npm WARN optional Skipping failed optional dependency /forever/chokidar/fsevents
npm WARN notsup Not compatible with your operating system or architecture: [email protected]

then pm2 (the same thing happens with nodemon or forever) does not work at all.

if i try to install fsevents only this is what i got:

sudo npm install -g  fsevents
npm ERR! Linux 4.1.13-v7+
npm ERR! argv "/opt/nodejs/bin/node" "/usr/bin/npm" "install" "-g" "fsevents"
npm ERR! node v5.7.0
npm ERR! npm  v3.6.0
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: arm

maybe should i wait till fsevents compatibility?

1 Answer 1

2

Attempting to install fsevents on the Raspberry Pi doesn't even make sense. According to its package page, it's a library to get OS-X FSEvents. Since those don't exist on the RPi, it's not compatible.

The warning you get from pm2 specifically lists the dependency as optional. You'll loose some MacOS functionality, but you don't need that anyway.

2
  • This should be accepted as an answer. It solved my worries about this issue (installing nodemon on Raspberry Pi 3). Mar 17, 2016 at 0:58
  • @JeremyIglehart: I appreciate the upvote all the same :)
    – Jacobm001
    Mar 17, 2016 at 4:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.