Trying to install angular/cli in cmd, node.js verson 8.1.2
Asked
Active
Viewed 847 times
-2
-
1Did you install nodejs? https://nodejs.org/en/ if it already install set a path to nodejs. https://stackoverflow.com/questions/27864040/fixing-npm-path-in-windows-8-and-10 – Mahesh K S Dec 07 '21 at 02:42
-
@MaheshKS Yes I have version 8.1.2 – jaime-lee Dec 07 '21 at 02:46
-
In your CMD run command node -v if it it generate an error then maybe the nodejs path is not set in windows or please restart ( close and reopen) cmd and try again to install angular – Mahesh K S Dec 07 '21 at 02:54
1 Answers
1
You need to define the Nodejs "PATH" variable. You can see how it should look in the picture.
If you open the "CMD" window again later, you can successfully complete the installation process.

Rıdvan Can
- 89
- 4