RHEL8, Node.js 14.16, default config wrong
I have enabled module stream for nodejs:14, and then installed nodejs
This will install nodejs, and also npm.
The npm modules will install to '/usr/lib/node_modules/npm/node_modules/' from the rpm.
BUT
The npm prefix set in '/usr/etc/npmrc' is pointing to '/usr/local', so the global npm modules are not found.
I'm guessing this is a mistake in the packaging?
I had to use 'root' access to change the prefix to just '/usr' and now npm is able to find the global modules.