-
Notifications
You must be signed in to change notification settings - Fork 2
Getting Started: Setup
Neil Johnson edited this page Nov 10, 2021
·
3 revisions
node -v
npm -v
ng --version
ng serve
Troubleshoot
ng update
ng update @angular/core
ng update @angular/cli
If the version of node.js you installed isn't compatible with Angular, you can update node.js or use nvm.
npm cache clean --force
npm install -g n
sudo n stable
You can also install the latest version of n by substituting latest
for stable
in the last command, like so:
sudo n latest
If you're using bash, you can install nvm-sh/nvm: Node Version Manager, a POSIX-compliant bash script to manage multiple active node.js versions.
Once everything is working, use this command to rebuild your node_modules
directory:
npm install --save-dev @angular-devkit/build-angular --legacy-peer-deps
Update Angular if needed: https://update.angular.io/