checkPermissions Missing write access to /usr/local/lib/node_modules
2
votes
1
answer
5826
views
I tried to install the
npm install pug
, could not because of the permisions, got this:
checkPermissions Missing write access to /usr/local/lib/node_modules
However im logged in as as root Linards:~ Berzins$
, as I tried to enable the root user:
Linards:~ Berzins$ dsenableroot
username = Berzins
user password:
root password:
verify root password:
dsenableroot:: ***Successfully enabled root user.
Any help appreciated.
**UPDATE:**
After suggestion by FarazX below, this is the ooutcome:
Linards:~ Berzins$ ls -lO /usr/local/lib/node_modules
total 0
drwxr-xr-x 8 Berzins staff - 272 1 Oct 21:53 bower
drwxr-xr-x 8 Berzins staff - 272 1 Oct 21:54 foundation-cli
drwxr-xr-x 12 Berzins staff - 408 11 Oct 22:56 gulp
drwxr-xr-x 27 Berzins staff - 918 12 Oct 13:17 npm
Linards:~ Berzins$
Asked by Linards Berzins
(33 rep)
Oct 12, 2016, 01:35 PM
Last activity: Aug 4, 2020, 12:31 PM
Last activity: Aug 4, 2020, 12:31 PM