- Get node binary (node.exe) from http://nodejs.org/download/
- Create the folder where node will reside and move node.exe to it
- Download the last zip version of npm from http://nodejs.org/dist/npm
- Unpack the zip inside the node folder
- Download the last tgz version of npm from http://nodejs.org/dist/npm
- Open the tgz file and unpack only the file bin/npm (without extension) directly on the node folder.
- Add the the node folder and the packages/bin folder to PATH
- On a command prompt execute
npm install -g npm
to update npm to the latest version
Now you can use npm and node from windows cmd or from bash shell like Git Bash of msysgit.
I'm new to software and trying to learn on a USB device connected to a laptop user account without administrative access. I'm getting this error.
"Error: double-loading config "F:\Documents\NodePortable\app\etc\npmrc" as "global", previously loaded as "user"
at #loadObject (F:\Documents\NodePortable\app\node_modules\npm\node_modules@npmcli\config\lib\index.js:561:13)
at F:\Documents\NodePortable\app\node_modules\npm\node_modules@npmcli\config\lib\index.js:600:31
at async #loadFile (F:\Documents\NodePortable\app\node_modules\npm\node_modules@npmcli\config\lib\index.js:599:5)
at async Config.load (F:\Documents\NodePortable\app\node_modules\npm\node_modules@npmcli\config\lib\index.js:287:5)
at async #load (F:\Documents\NodePortable\app\node_modules\npm\lib\npm.js:227:5)
at async module.exports (F:\Documents\NodePortable\app\node_modules\npm\lib\cli.js:68:5)
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
Error: double-loading config "F:\Documents\NodePortable\app\etc\npmrc" as "global", previously loaded as "user"
at #loadObject (F:\Documents\NodePortable\app\node_modules\npm\node_modules@npmcli\config\lib\index.js:561:13)
at F:\Documents\NodePortable\app\node_modules\npm\node_modules@npmcli\config\lib\index.js:600:31
at async #loadFile (F:\Documents\NodePortable\app\node_modules\npm\node_modules@npmcli\config\lib\index.js:599:5)
at async Config.load (F:\Documents\NodePortable\app\node_modules\npm\node_modules@npmcli\config\lib\index.js:287:5)
at async #load (F:\Documents\NodePortable\app\node_modules\npm\lib\npm.js:227:5)
at async module.exports (F:\Documents\NodePortable\app\node_modules\npm\lib\cli.js:68:5)
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom [email protected] has failed.
Deleting generated file... package.json
Deleting todoapp/ from F:\Documents\NodePortable\work"
Could you help please?