2

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$
  • 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 '16 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 '16 at 15:54
  • 1
    Try using: sudo npm install pug – Abhilash Reddy Apr 13 at 2:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.