- Saved searches
- Use saved searches to filter your results more quickly
- License
- dmrub/portable-node
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- Portable NodeJS without administrator access
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Install node.js locally on Windows and Linux without administrator rights
License
dmrub/portable-node
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Install node.js locally on Windows and Linux without administrator rights.
Note: when specifying version at the command line, a full version number (MAJOR.MINOR.PATCH) must be specified !
Download and run https://raw.github.com/dmrub/portable-node/master/bin/install-node.vbs. The script will download recent version of node.js and create startup files for node.js and git bash.
For more options run from command line (cmd.exe or git bash):
> cscript install-node.vbs /? Node Portable Environment Setup Script Usage : install-node.vbs [ /? ] [/version:node-version /arch:x86|x86_64|32|64 /force] Options: /version:node-version select node version to download (default : 6.9.5) /arch:x86|x64|x86_64|32|64 select node architecture to download (default : x86) /force force download and installation /? print this
wget https://raw.github.com/dmrub/portable-node/master/bin/install-node.sh chmod +x ./install-node.sh ./install-node.sh
For more options run from command line:
> ./install-node.sh --help Node Portable Environment Setup Script Usage: ./install-node.sh [options] options : -h | --help print this -v | --version=node-version select node version to download (default : 6.9.5) -a | --arch=x86|x86_64|32|64 select node architecture to download (default : x64) -f | --force force download and installation
About
Install node.js locally on Windows and Linux without administrator rights
Portable NodeJS without administrator access
If you are still reading then here is my working (very hacky) solution to get NodeJS portable!
I used a portable version of Cmder but I imagine any terminal program where you can add to the PATH is fine.
- Install Cmder in your desired location.
- Download nvm-noinstall.zip from the latest release.
- Extract the contents of nvm-noinstall.zip into the bin folder inside of the portable Cmder folder.
- Navigate to the bin folder in Cmder and run install.md
- When asked to enter the absolute path use your Cmder bin folder. (In my case, for some reason the settings.txt isn’t created in the bin folder but instead is made at root of my usb i.e. E:/ ).
- Install the version of node you want i.e. nvm install latest (Make sure to still be inside of the bin folder in your terminal program).
- Wait until node and npm have finished installing.
- Inside the bin folder there should be a folder containing the latest node version e.g. v13.8.0 .
- Copy the absolute path to that folder. e.g. E:\PortableApps\CmderPortable\bin\v13.8.0 .
- Add this to your existing path in Cmder’s environment settings. e.g. set «PATH=E:\PortableApps\CmderPortable\bin\v13.8.0;%PATH%»
- Make sure you are still inside your bin folder. Run nvm use v13.8.0 or your chosen node version. You can close the username and password window both times without entering anything. It should tell you Now using node v13.8.0 (64-bit) .
- Close and open Cmder and you should have access to node , npm and npx 😄.
I have also posted this information on the nvm-windows issue requesting for a portable version #363
Let me know if you have any alternative solutions. I would be happy to read them in the comments.