Skip to content

Getting Started: Setup

Neil Johnson edited this page Nov 10, 2021 · 3 revisions

Getting Started with VersaClient: Set Up Your Development Environment

node -v
npm -v
ng --version
ng serve

Troubleshoot

ng update
ng update @angular/core
ng update @angular/cli

Resolve node version issues

If the version of node.js you installed isn't compatible with Angular, you can update node.js or use nvm.

Update node.js with npm and n

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

Use nvm

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/