Install Angular -CLI on Windows 10

I had problems installing angular-cli on a Windows 10 system. Errors were related to the Python and node -gyp dependencies. Sort of:

>execSync@1.0.2 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)
+5
source share
9 answers

Delete

npm uninstall -g angular-cli
npm uninstall --save-dev angular-cli

Update Global Package

npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
+5
source

Update

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


since mukesh51 is not answering my question, and Bhargav Rao removed mukesh51's answer from the question itself, I put the answer here:

Installation works as follows:

  • npm install -g node-gyp
  • npm install -g windows-build-tools
  • npm install -g @angular/cli

I took the following steps: here .

+3
source

Windows angular -cli. - .

+2

, Angular Bash. . ( ). , , , .

, :

 npm uninstall -g @angular/cli

Angular Windows Power Shell ( )

npm install -g @angular/cli

! , !

+2

Windows 10

... , Angular :

C:\Program Files\ Git\usr\local\node_modules\@angular\cli\bin

ENVT, , ng

+1

npm install -g @angular/cli npm AppData, ng -v :

npm cache clean --force

npm-, , npm cache clean.

npm install -g @angular/cli@latest

, Windows10.

0

1. , - npm install -g @angular/cli - , , " JSON" 2. js 3. 4. CMD Powershell 5. 6. angular/cli 12

, -

0

CLI, , Node 8.9 , NPM 5.5.1 .

node.js npm

0

npm uninstall -g @angular/cli npm install -g @angular/cli

  • if it doesn’t work: Close the terminal, open a new one or use CMD or Git for Windows instead.
0
source

Source: https://habr.com/ru/post/1656068/


All Articles