Search This Blog

Monday, September 19, 2016

Angular2 Quickstart errors

I was trying to setup Angular2 Quickstart application (https://angular.io/docs/ts/latest/quickstart.html) on my Ubuntu box and running npm install kept giving the user permission error. The logs revealed that the folder .npm and .config was not accessible to my user.


The issue was fixed by accessing the said folder and allowing current user to have permissions  by entering the following commands

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
sudo chown -R $USER:$GROUP ~/.node_modules_global


That fixed the problem

Entering the next two commands, started the demo and produced the output I was looking for.

$ npm install

$ npm start



That seems to have solved the problem!