Please help. This is using latest node js v7.1.0
Windows 10
ng new FirstApp
D:\2016\BeGreatWithNg>ng new FirstApp
Cannot find module '@angular/core'
Error: Cannot find module '@angular/core'
at Function.Module._resolveFilename (module.js:472:15)
at Function.Module._load (module.js:420:25)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at Object.
Please someone should come out and help out on this issue. Its screwing with my time... node v7.6.0, npm 4.4.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
@Adesubomi see my comment above.
Anyone? :(
@lisa13 add option --no-optional at the end of command.
@lisa13 try this command npm install -g angular-cli
@chekkanaveen I have installed the latest angular version: npm install -g @angular/cli but no use!
@tolawho Thanks I tried that as well, no changes so far! I am uninstalling everything and reinstalling again. If this doesn't work either I am changing my OS :/
Still facing this issue after the @angular/cli v.1.0.0. What is actually causing this error?

I have node v6.10.0 on my windows 7 machine. I am getting the below eror in the output window when I try to save package.json file. Error:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) npm WARN @ngtools/[email protected] requires a peer of typescript@^2.0.2 but none was installed.
I am unable to load gulp tasks due to this.
Please help me resolve this issue.
Node version: 7.7.3 NPM: 4.1.2 ng-cli: 1.0.0
Same issue:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
I was able to work by going back to the 2.15.11 version of npm
Although that I have the same issue, as I pointed above, for me is just a non clean install. Everything works without problem.
I'm using, for now, npm 4.2.0, node 7.8.0, n 2.1.6.
Any update??
same issue.. Any updates?
Yeah, worked for me, Reinstall NodeJs
try this
npm cache clear npm install --no-optional
@shijilesh yeah, this worked for me.
The same issue on Deepin 15.4
Ubuntu 16.04 LTS + Node v6.10.3 LTS + npm 3.10.10 Same issue
Resolve with (thx @shijilesh) npm cache clear npm install -g forever express --no-optional
Resolved with
npm cache clear
npm install -g forever express --no-optional
Thanks @mox63 & @shijilesh