npm Community Forum (Archive)

The npm community forum has been discontinued.

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

EACESS error while installing locally

i recently upgraded my system to a new ubuntu 18.04 release and up on getting my old projects and hitting npm install it seems like i’m not able to do so. and it is not a global install but a local install

i keep looking for a fix but can’t seem to find one

The quick work-around is to reset the ownership in the folder you mentioned, before trying the install again:

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

The underlying issue is npm leaving behind some files owned by root, and the canonical open bug is: