user12011141
user12011141

Reputation:

Problems installing Angular

I am having trouble installing Angular globally. I have included the error below.

C:\Users\DevSa\ng -> C:\Users\DevSa\node_modules\@angular\cli\bin\ng

> @angular/[email protected] postinstall C:\Users\DevSa\node_modules\@angular\cli
> node ./bin/postinstall/script.js

'node' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @angular/[email protected] postinstall: `node ./bin/postinstall/script.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @angular/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\DevSa\AppData\Roaming\npm-cache\_logs\2019-11-26T21_34_00_712Z-debug.log

Upvotes: 1

Views: 1087

Answers (1)

Vipulw
Vipulw

Reputation: 1283

Add C:\Program Files\nodejs\ at the top of your environment variables PATH list and then C:\Users\{your username}\AppData\Roaming\npm below it.

Hope solves your issue.

Upvotes: 1

Related Questions