Follow these steps to install npm for your logged-in user if you do not have admin access.
– Download the stable npm package for the desired version from the [npm registry](https://registry.npmjs.org/npm/-/npm-{VERSION}.tgz).
– Unzip the npm-{VERSION}.tgz package.
– Open a command prompt and navigate to the unzipped npm folder.
– Execute one of the following commands (depending on the version):
node cli.js install -gf
or
node bin/npm-cli.js install npm -gf
You can now verify the installation of Node.js and npm versions in your system:
– Open a new command prompt and type:
node -v
npm -v
– You should see the versions of Node.js and npm you installed.