Troubleshooting - doshprompt/ng-scaffolding GitHub Wiki

The following guide documents workarounds to issues some users may experience during installation or running of ngScaffolding. If you find that your error is not documented below, please open up an issue and I will be happy to discuss how it can be solved.

Errors during installation

npm throws a permissions error unless I use sudo

This is generally caused by permissions issues in your home directory. To reclaim ownership of the .npm directory, open up a terminal window and run sudo chown -R `whoami` ~/.npm. If this doesn't solve your permissions issues, you may find you also need permissions to write to the node_modules directory. Running sudo chown -R `whoami` /usr/local/lib/node_modules should address this.