I've installed and used node/npm on more systems than I care to count, the majority being Linux/CentOS machines. I have a CentOS 7 installation that installs global packages in
/root/node_modules. Thus, they won't be globally available.
npm root also confirms this. Of course, I could probably use prefix, or any similar NVM-ish hack; but I'd rather not.
I also tried installing as
devDependencies. One side effect was that pm2 cluster module was not spawning processes on all my cores, as I've seen on my other CentOS development server.
Please help me out. I've repeatedly uninstalled, purged and reinstalled node, npm and yarn.