This seems to be a widely reported problem. Are there any fixes?
admin> sudo npm install npm@latest -g
ERR! path usr/lib/node_modules/npm
ERR! code EACCES
ERR! errno -13
ERR! syscall access
ERR! Error: EACCES: permission denied ???
admin> ll usr/lib/node_modules/npm
drwxr-xr-x. 4 root root 4096 Jun 14 node_modules
admin> sudo npm - v
/usr/bin/npm: No such file or directory
admin> sudo curl -L
http://npmjs.org/install.sh | sudo sh
fetching:
https://registry.npmjs.org/npm/-/npm-5.0.3.tgz
added 1 package and removed 84 packages in 2.082s
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
+ npm@5.0.3
added 1 package in 1.345s
It worked
admin> sudo npm - v
/usr/bin/npm: No such file or directory
... It did not seem to work very well?!