Tuesday, April 25, 2017

Installing angular and node.js

This is painful to install angular on ubuntu. I'd like to do it in a fancy way using npm tool. The instruction says that there are ony a few things to do:

install nodejs
install npm
install angular via npm

Okay.... I'm starting with apt-get update, apt-get install nodejs, apt-get install npm, .
And then I see versions conflicts, unexpected errors on creating angular project etc.

I had to uninstall all the packages and start from the very beggining,
Fortunately I found a nice explanation how to install it:


It's better to skip the first section and just consequentely execute commands from section 'Установка при помощи PPA'.

After you got npm installed, just run npm install -g @angular/cli

I hope your time and nerves will be saved