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.
npm uninstall -g @angular/cli && npm install -g @angular/cli@angular/cliversion?$PATHand see where it's loading from. Update your question to include your OS, and check what you have in~/.npmrc