As others have pointed out, npm is now included with the binary (.zip) node download. So installing node and npm without admin rights is straightforward, though you need to manually add the node directory to the PATH
environment variable.
However, as of v8.11.4, the binary was including npm v5.6.1. Running npm install npm@latest -g
complained about not being able to delete npm.cmd
and npx.cmd
. Moving those files out of the node directory fixes that, but then you can't simply run npm
on the command line, because npm.cmd
is no longer on the node path.
Trying @Anthony O's approach of downloading the latest npm .zip and installing from there didn't work either, as it was complaining about rimraf
not being installed. It seemed like maybe the npm install script was assuming rimraf
was installed globally.
What finally worked was changing to the node directory and specifying the full path to npm-cli.js
from there:
node node_modules/npm/bin/npm-cli.js install -g npm@latest
I see that the node v8.12.0 package that was just released now includes npm v6.4.1, so the above shouldn't be necessary for now.