angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Please help. This is using latest node js v7.1.0

Open PacejetRepository opened this issue 10 years ago • 45 comments

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. (C:\Users\TETAY\AppData\Roaming\npm\node_modules\angular-cli\node_modules@ngtools\webpack\src\plugin.js:5:14) at Module._compile (module.js:573:32) at Object.Module._extensions..js (module.js:582:10) at Module.load (module.js:490:32) at tryModuleLoad (module.js:449:12) at Function.Module._load (module.js:441:3) at Module.require (module.js:500:17) at require (internal/module.js:20:19) at Object. (C:\Users\TETAY\AppData\Roaming\npm\node_modules\angular-cli\node_modules@ngtools\webpack\src\index.js:6:10) at Module._compile (module.js:573:32) at Object.Module._extensions..js (module.js:582:10) at Module.load (module.js:490:32) at tryModuleLoad (module.js:449:12) at Function.Module._load (module.js:441:3) at Module.require (module.js:500:17)

PacejetRepository avatar Nov 16 '16 07:11 PacejetRepository

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 avatar Mar 08 '17 18:03 Adesubomi

@Adesubomi see my comment above.

tolawho avatar Mar 10 '17 07:03 tolawho

Anyone? :(

lisa13 avatar Mar 18 '17 12:03 lisa13

@lisa13 add option --no-optional at the end of command.

tolawho avatar Mar 18 '17 16:03 tolawho

@lisa13 try this command npm install -g angular-cli

chekkanaveen avatar Mar 19 '17 21:03 chekkanaveen

@chekkanaveen I have installed the latest angular version: npm install -g @angular/cli but no use!

lisa13 avatar Mar 20 '17 15:03 lisa13

@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 :/

lisa13 avatar Mar 20 '17 15:03 lisa13

Still facing this issue after the @angular/cli v.1.0.0. What is actually causing this error? image

saiyaff avatar Mar 25 '17 16:03 saiyaff

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.

dvk2591 avatar Mar 27 '17 07:03 dvk2591

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"})

vprasanth avatar Mar 28 '17 23:03 vprasanth

I was able to work by going back to the 2.15.11 version of npm

interaminense avatar Mar 31 '17 00:03 interaminense

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.

Danilo-Araujo-Silva avatar Mar 31 '17 10:03 Danilo-Araujo-Silva

Any update??

Ajith55 avatar Apr 02 '17 10:04 Ajith55

same issue.. Any updates?

macroramesh6 avatar Apr 07 '17 06:04 macroramesh6

Yeah, worked for me, Reinstall NodeJs

Ajith55 avatar Apr 07 '17 06:04 Ajith55

try this

npm cache clear npm install --no-optional

shijilesh avatar Apr 12 '17 15:04 shijilesh

@shijilesh yeah, this worked for me.

juandiego26 avatar Apr 24 '17 20:04 juandiego26

The same issue on Deepin 15.4

qwertyuiop6 avatar May 12 '17 05:05 qwertyuiop6

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

mox63 avatar May 12 '17 09:05 mox63

Resolved with

npm cache clear

npm install -g forever express --no-optional

Thanks @mox63 & @shijilesh

roughmatrix avatar May 18 '17 19:05 roughmatrix