Node Runtime Environment
An extension for:
This utility ensures that any CMD command is executed within an environment configured for the selected NodeJS version.
Requirements (Windows)
Before installation, ensure the following software is installed:
Installation (Windows)
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.4.0-win64.zip.
- Move the
nre.exe binary to the %NVM_HOME% directory.
- Open a terminal (console) and run the
nre command to confirm that the application is functioning correctly.
Requirements (Linux)
Before installation, ensure the following software is installed:
Installation (Linux)
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.4.0-linux64.zip.
- Move the
nre binary to the $NVM_DIR directory.
- Set execute permissions:
chmod +x nre
- Open a terminal (console) and run the
nre command to confirm that the application is functioning correctly.
Usage
nre <NODE_VERSION> <COMMAND>
NODE_VERSION - The NodeJS version number managed by NVM.
COMMAND - Any command valid for your operating system or terminal.
Examples
nre 8 npm run start: Executes npm run start using NodeJS version 8.
nre 10 node -v: Executes node -v using NodeJS version 10.
nre 12 git commit -m "Update": Executes git commit -m "Update" using NodeJS version 12.
Development (Windows)
To build and run NRE from source, ensure the following prerequisites are installed:
Running from Source
go run main.go
Building the Binary
To generate the nre.exe executable for Windows:
go build -o nre.exe main.go
Development (Linux)
To build and run NRE from source, ensure the following prerequisites are installed:
Running from Source
go run main.go
Building the Binary
To generate the nre executable for Linux:
go build -o nre main.go
Contributing
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!
Author
Adrian Gargula