Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 195 Vote(s) - 3.66 Average
  • 1
  • 2
  • 3
  • 4
  • 5
npm install -g less does not work: EACCES: permission denied

#11
sudo chown -R $USER /usr/local/lib/node_modules
This command will work
Reply

#12
You can try with sudo, like the following

sudo npm install -g less

If it does not work, you can refer to this link

[To see links please register here]

Reply

#13
Try installing with `sudo`. I had a similar problem installing npm package globally. The problem occurs because current use does not have write permissions for making changes in directory.

Didn't work

```
npm i -g vsce
```

Worked
```
sudo npm i -g vsce
```
Reply

#14
You can use this command with the root password to add permission for writing for `node_module` folder:

sudo chown -R $USER /usr/local/lib/node_modules
Reply

#15
I have got the same problem.
updating npm was not working for me either so I just decided to reinstall it.

what worked for me is uninstall node from my system using.

sudo apt-get remove nodejs
sudo apt-get remove npm

end then reinstall it after update.

sudo apt-get update
sudo apt install npm

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through