You are not logged in.
Hi all, I'm new here. (Sorry if this is a dumb question.)
But I recently found out that if I install node/npm in Arch via pacman/yay, it will default install node_modules in /usr/lib/node_modules. Shouldn't it install inside /usr/local/lib/node_modules?
Now every time I install something via npm, I need to be root. Does anyone know how to fix it? Thanks for any replies.
Offline
Packages don't go to /usr/local/. Ever. Even there, you would still need root.
Offline
See https://wiki.archlinux.org/title/Arch_p … irectories
You should never install anything with NPM, Pip, etc. as root. For development, you should be using a virtual environment.
Last edited by yochananmarqos (2023-04-30 19:44:02)
Offline