An extension for:
- NVM for Windows
- NVM for Linux
- NVM for MacOS (work in progress)
This utility ensures that any CMD command is executed within an environment configured for the selected NodeJS version.
Before installation, ensure the following software is installed:
If you have GoLang version 1.20.4 or higher, run the command:
go install github.com/Adrosar/nre@latest
... or download the compiled version:
- Download and extract the archive
nre-0.3.0-win64.zip. - Move the
nre.exebinary to the%NVM_HOME%directory. - Open a terminal (console) and run the
nrecommand to confirm that the application is functioning correctly.
Before installation, ensure the following software is installed:
If you have GoLang version 1.20.4 or higher, run the command:
go install github.com/Adrosar/nre@latest
... or download the compiled version:
- Download and extract the archive
nre-0.3.0-linux64.zip. - Move the
nrebinary to the$NVM_DIRdirectory. - Set execute permissions:
chmod +x nre - Open a terminal (console) and run the
nrecommand to confirm that the application is functioning correctly.
nre <NODE_VERSION> <COMMAND>NODE_VERSION- The NodeJS version number managed by NVM.COMMAND- Any command valid for your operating system or terminal.
nre 8 npm run start: Executesnpm run startusing NodeJS version 8.nre 10 node -v: Executesnode -vusing NodeJS version 10.nre 12 git commit -m "Update": Executesgit commit -m "Update"using NodeJS version 12.
To build and run NRE from source, ensure the following prerequisites are installed:
go run main.go
To generate the nre.exe executable for Windows:
go build -o nre.exe main.go
To build and run NRE from source, ensure the following prerequisites are installed:
- Go 1.20.4 for Linux
- NVM for Linux
go run main.go
To generate the nre executable for Linux:
go build -o nre main.go
This project was initially created for personal use, but it’s open to the community.
Contributions are welcome — feel free to:
- Open an issue to report bugs or suggest new features
- Submit pull requests with improvements
- Share ideas for future development
Your feedback and participation are highly appreciated!
Adrian Gargula