Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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$
share|improve this question
    
Dear Linards, please check permissions of the directory, and add the result to your question by updating it. Please use ls -lO /usr/local/lib/node_modules – FarazX Oct 12 at 15:42
    
Thank you Faraz, good to hear from you. It comes to this: 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 Image here for better reading imgur.com/a/vMk25 – Linards Berzins Oct 12 at 15:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.