I tried to install npm install -g npm to update and I don't know if it was necessary but it failed. How do I give it permission to unlink?
Asked
Active
Viewed 1,504 times
1
-
The error is stating the obvious; the command does not have permission to unlink `/usr/local/bin/npx`. – l'L'l Sep 06 '19 at 01:34
-
What's your operating system? You might need to add `sudo`. – Travenin Sep 06 '19 at 14:38
-
You have to add sudo to execute it or give that folder permission by chmod if you're using ubuntu – Juhil Somaiya Jan 28 '20 at 10:48
1 Answers
1
try using sudo prefix and try run it again

saravanan
- 11
- 1
-
-
2saravanan can't comment till he gets at least 10 reputation. Plus there isn't a problem with a short answer if it's an ok answer (note I'm not familiar with npm so I don't know if it's a ok answer) – MBorg Jan 28 '20 at 10:50