'Upgrading global Angular cli version?
When I inquire about the @angular/cli version through npm, it tells me it's version
npm list -g --depth=0 @angular/cli
>>> @angular/[email protected]
But when I inquire via ng --version, it tells me it's 8.0.0-beta.11. I'm not in a local angular project. I can't figure out how to thoroughly upgrade my global ng. Suggestions?
Edit: Here's some extra info as requested in comments:
sw_vers -productVersion # Show Mac OSX version
>>> 10.15.2
which -a ng
>>> /Users/magnus/.nvm/versions/node/v10.16.3/bin/ng
>>> /usr/local/bin/ng
/Users/magnus/.nvm/versions/node/v10.16.3/bin/ng --version
>>> ... Angular CLI: 8.0.0-beta.11 ...
/usr/local/bin/ng --version
>>> ... Angular CLI: 8.0.0-beta.11 ...
realpath /usr/local/bin/ng
>>> /usr/local/lib/node_modules/@angular/cli/bin/ng
cat ~/.npmrc
>>> ignore-scripts=false
I installed npm via nvm with the intention to only use that version. Not sure why I am seeing an ng executable in /usr/local/bin; I'm pretty sure I wouldn't have tried installed it via homebrew.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
