-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Error installing angular-cli #12016
Description
When I try to install angular-cli on windows 10, it returns the following error.
Repro steps
Run Node.js as Administrator:
Step 1: npm uninstall -g @angular/cli
Step 2: npm cache clean
Step 3: npm install -g @angular/cli or npm install -g @angular/cli@latest
Windows 10
C:>node -v
v10.9.0
C:>npm -v
6.2.0
C:>npm install -g @angular/cli@latest
npm ERR! path C:\Users\jdhoyos\AppData\Roaming\npm\ng.cmd
npm ERR! code EEXIST
npm ERR! Refusing to delete C:\Users\jdhoyos\AppData\Roaming\npm\ng.cmd: node_modules\angular-cli\bin\ng symlink target is not controlled by npm C:\Users\jdhoyos\AppData\Roaming\npm\node_modules@angular\cli
npm ERR! File exists: C:\Users\jdhoyos\AppData\Roaming\npm\ng.cmd
npm ERR! Move it away, and try again.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\jdhoyos\AppData\Roaming\npm-cache_logs\2018-08-28T01_02_54_489Z-debug.log