npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Getting problem with build an Angular project

I’m using npm version 6.10.1 (latest stable version), node version 10.16.0.


There is an open issue with installing global packages using sudo leaving behind files with the wrong ownership, which might be affecting you.

The short version is run this to fix the ownership, then try your install again:

sudo chown -R $(whoami) ~/.npm


Right, I saw this fix and then installed ‘next’ npm version and it went well.
Thanks for your help