Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Angular-CLI on Windows 10

I had installation issues of angular-cli on Windows 10 system. The errors were related to Python dependencies and node-gyp. Something as below :

>[email protected] install C:\Users\UserName\AppData\Roaming\npm\node_modules\angular-cli\node_modules\execSync
node install.js
[execsync v1.0.2] Attempting to compile native extensions.
{ Error: spawn node-gyp ENOENT
at exports._errnoException (util.js:1007:11)
like image 719
mukesh51 Avatar asked Sep 28 '16 09:09

mukesh51


1 Answers

Update

this seems to be fixed in newer releases and this solution is no longer required.


mukesh51 eventually solved the problem.

the installation seems to work in these steps:

  1. npm install -g node-gyp
  2. npm install -g windows-build-tools
  3. npm install -g @angular/cli

I took these steps from here.

like image 124
ahmadali shafiee Avatar answered Sep 24 '22 13:09

ahmadali shafiee