I totally agree with you on using node with an nvm
Yes, you will still need sudo to install global modules following the above instructions.
But you can also install global modules using the command below.
sudo chown -R `whoami` /usr/local
Using nvm is sure recommended and I have written how iroleh.tech/setting-up-node-the-right-way-on-linu…
maxdevjs
...
Useful article, thank you :)
It is a personal preference (and not using Ubuntu as distro), but I prefer to use a "dedicated" node version manager like
nvm, n, etcBy the way, with the method presented in the article, is
sudoneeded to install global modules?