error installing anguar js

+5 hiral nagda · November 18, 2016

>npm install
'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\n
pm-cli.js" prefix -g' is not recognized as an internal or external command,
operable program or batch file.
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nod
esecurity.io/advisories/130

> angular-2@1.0.0 postinstall C:\Users\HIRAL\Desktop\angular-2-template-master
> typings install


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 fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN angular-2@1.0.0 No repository field.
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! file C:\Program Files\Java\jdk1.8.0_73\bin;C:\Windows\system32\cmd.exe
npm ERR! path C:\Program Files\Java\jdk1.8.0_73\bin;C:\Windows\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\Program Files\Java\jdk1.8.0_73\bin;C:\Windows\system32\cmd.exe
npm ERR! angular-2@1.0.0 postinstall: `typings install`
npm ERR! spawn C:\Program Files\Java\jdk1.8.0_73\bin;C:\Windows\system32\cmd.exe ENOENT
npm ERR!
npm ERR! Failed at the angular-2@1.0.0 postinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-2
npm ERR! There is likely additional logging output above.
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 fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN angular-2@1.0.0 No repository field.
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! angular-2@1.0.0 postinstall: `typings install`
npm ERR! Exit status -4058
npm ERR!
npm ERR! Failed at the angular-2@1.0.0 postinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-2
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\HIRAL\Desktop\angular-2-template-master\npm-debug.log

Post a Reply

Replies

Oldest  Newest  Rating
0 oguzhan turan · December 25, 2016
I have the same problem too. Can you find some clue or and answer ?
0 Ali Hassan · January 21, 2017
well it seems to be complaining about the post install script which is 
typings install


make sure you have the latest versions of node , typescript and typings installed globally with the -g flag , you can install typescript and typings with npm like you would with any other package.
  • 1

Javascript

127,950 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators