Answer the question
In order to leave comments, you need to log in
Problem with node js Permission denied, how to solve?
After npm audit fix no access to nodejs
write command in terminal node -v
-bash: /usr/bin/node: Permission denied
npm -v
-bash: /usr/bin/node: Permission denied
do chmod on /usr/bin/ node
chmod: changing permissions of '/usr/bin/node': Operation not permitted
I run all commands as root.
Trying to reinstall node
dpkg: Warning: Deleting nodejs package failed to remove directory '/usr/bin/node': Operation not permitted - perhaps it is a filesystem mount point?
What could be? How to resolve the issue.
Answer the question
In order to leave comments, you need to log in
chattr -i /usr/bin/node
chmod 755 /usr/bin/node
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question