Skip to content
Advertisement

what should I do with the n upgrade node permission in fedora 32

I am using this command to upgrade the node version in fedora 32:

JavaScript

when I using the n stable command, shows error like this:

JavaScript

I did not want to using root user to upgrade the node, what should I do? Just change the /usr/local folder permission to current user? does this way had any side effect? I am not sure, what is the best way to make the n stable command work?

Advertisement

Answer

The installation section in the documentation of n has instructions to avoid using sudo or working as an admin.

Quoting from the current version:

To avoid requiring sudo for n and npm global installs, it is suggested you either install to your home directory using N_PREFIX, or take ownership of the system directories:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement