nenv is a lightweight tool that allows any Windows project to use Node.js locally without installing Node globally. It downloads a full Node.js runtime directly into your project:
.nenv/node-vX.Y.Z-win-x64/
All Node/npm commands run using this isolated project runtime.
Perfect for:
- Corporate / restricted laptops (no admin rights)
- Zero-install developer setups
- Multiple projects with different Node versions
- CI/CD environments without global installs
- Portable development
- Reproducible project environments
- ✔ Zero global Node installation required
- ✔ Node stored inside project (
.nenv/) - ✔ Supports Node versions 14, 16, 18, 20, 22, 24
- ✔
nenv.cmd nodeuses the project’s local Node - ✔
nenv.cmd npm installuses local npm - ✔
nenv.cmd dev,nenv.cmd build, etc. - ✔ Downloads official Node.js zips automatically
- ✔ Fully offline after first download
- ✔ No dependencies — just PowerShell + CMD
- ✔ Clean, simple, reproducible
Run this inside your project root folder::
Invoke-WebRequest -Uri "https://cdn.jsdelivr.net/gh/tabreezsajjad/nenv@v0.5.0/nenv.txt" -OutFile "nenv.cmd"Then initialize:
.\nenv.cmd initThis will download Node.js into:
.nenv/node-vX.Y.Z-win-x64/
and generate .nenv-version.
- Visit: https://github.com/tabreezsajjad/nenv
- Download
nenv.txtand save it asnenv.cmd - Place it in your project
- Run:
.\nenv.cmd init.\nenv.cmd node --version.\nenv.cmd npm install.\nenv.cmd dev
.\nenv.cmd build
.\nenv.cmd startEquivalent to:
npm run dev
npm run build
npm run start
But always using the project-local Node, never the global system.
project/
│ nenv.cmd
│ .nenv-version
└── .nenv/
├── cache/
│ └── node-v18.20.0-win-x64.zip
└── node-v18.20.0-win-x64/
├── node.exe
├── npm.cmd
├── npx.cmd
└── all Node core files
Everything is sandboxed to this one project.
Global Node installations cause:
- Version conflicts
- Permission problems
- Breaking updates
- Corporate laptop restrictions
- CI/CD inconsistencies
- Different versions across teammates
nenv fixes all of this by giving each project its own private Node runtime.
-
nenv.ps1PowerShell-native version -
nenv status -
nenv switch <version> -
nenv list - Auto-updating mechanism
- GitHub Pages documentation
- macOS/Linux support (future)
- One-line bootstrap installer
If this project helps you, consider supporting:
Or simply ⭐ star the GitHub repo — it means a lot!
MIT License — free for personal and commercial use.
Built with ❤️ by Sajjad Tabreez
GitHub: https://github.com/tabreezsajjad/