0

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.

New contributor
iMyke is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

iMyke is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.