WatchUsBuild-Angular2App icon indicating copy to clipboard operation
WatchUsBuild-Angular2App copied to clipboard

Getting error when run npm install (os issue)

Open SergeyNarozhny opened this issue 8 years ago • 1 comments

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

SergeyNarozhny avatar Nov 18 '16 09:11 SergeyNarozhny

Try doing npm install -g [email protected]

(OR)

Add this in package.json

"optionalDependencies": {
    "fsevents": "*"
  },

and run npm install --no-optional

raghavmac avatar May 10 '17 20:05 raghavmac