apt install curl git build-essential
apt install libnotify-bin
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
Restart terminal (by opening new terminal) (Make sure you are not logged as root or use sudo)
Install default node
nvm install v8.9.4
npm install angular-cli -g
npm install node-sass -g
In case
ng serve
says it's not a valid angular project, try this:
npm uninstall -g angular-cli @angular/cli
npm cache clean --force
npm install npm@latest -g
npm install -g @angular/cli
- Open project's directory
- Go to WebStorm settings in Languages & Frameworks -> Node.js and NPM; select node js interpretor from the dropdown to v8.9.4 one.
- Edit Run/Debug configurations and create npm launcher, with command Run and script start. Make sure interpretor is set to project.
- If you want to debug Angular code, open Edit Run/Debug configurations and create JavaScript Debug launcher, set URL https://localhost:4200/