WatchUsBuild-Angular2App
WatchUsBuild-Angular2App copied to clipboard
Getting error when run npm install (os issue)
I have cloned the repo to my amazon ec2 linux server. But when I run npm install, I'm getting this issue:
npm ERR! Linux 4.4.30-32.54.amzn1.x86_64 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v6.9.1 npm ERR! npm v4.0.2 npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! notsup Valid OS: darwin npm ERR! notsup Valid Arch: any npm ERR! notsup Actual OS: linux npm ERR! notsup Actual Arch: x64
Try doing npm install -g [email protected]
(OR)
Add this in package.json
"optionalDependencies": {
"fsevents": "*"
},
and run npm install --no-optional