Deploying nvm-windows noinstall package with Microsoft Intune for standard users #1363
Unanswered
DeltaFourCoding
asked this question in
Show and tell
Replies: 1 comment 1 reply
-
|
We have a build option with an official Intune installer coming in v2. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Deploying nvm-windows No-Install Package with Microsoft Intune for Standard Users
Overview
I wanted to share an Intune deployment approach for nvm-windows using the nvm-noinstall.zip package.
The goal is to install NVM for Windows at the machine level so standard users can install and switch Node.js versions without needing local administrator rights.
This deployment method:
C:\Node\NVMNVM_HOMEandNVM_SYMLINKas machine environment variablessettings.txtC:\Node\nodejs, allowing NVM to manage it as the active Node.js symlink pathNVMVersion.txtmarker file for reliable Intune detectionDownload
I've attached the deployment toolkit used for this implementation.
NVM-Windows-Intune-Toolkit.zip
Contents include:
The NVM binaries are not included.
Download the desired
nvm-noinstall.ziprelease from the official NVM Windows release page and place the extractednvm-noinstallfolder alongside the scripts before packaging.Folder Structure
Before packaging, place the scripts and extracted no-install package in the same source folder.
Preparation
1. Download the Desired Release
Download the desired
nvm-noinstall.ziprelease from the project releases page.2. Extract the Package
Extract the contents into a folder named:
3. Place the Scripts
Place the following scripts beside the
nvm-noinstallfolder:4. Update Company Name
In all three scripts, update:
5. Update Version Variables
In the Install and Detection scripts, update the version value to match the NVM release being packaged:
Packaging with IntuneWinAppUtil
Use the Microsoft Win32 Content Prep Tool to package the application.
Example:
This will create the
.intunewinpackage for upload into Intune.Intune Configuration
Install Command
Uninstall Command
Install Behavior
Detection Method
Use a custom PowerShell detection script:
Recommended settings:
Upgrade Process
When a new NVM version is released:
nvm-noinstall.zipnvm-noinstallfolderNo script modifications beyond the version number should normally be required.
Backup and Rollback
Before copying new NVM files, the install script creates a backup of the existing NVM folder.
Example:
This provides a simple rollback path if issues are encountered after upgrading.
Handling Existing nodejs Folders
Older deployments may have created:
as a physical folder.
Newer NVM versions expect to manage this location themselves.
During installation:
This prevents the common error:
Standard User Usage
After deployment, users can manage Node.js versions without requiring administrator rights.
Examples:
node -vnpm -vWhy Use the No-Install Version?
For managed enterprise environments, the no-install package offers several advantages:
Hopefully this helps anyone looking to deploy NVM at scale through Microsoft Intune while still allowing developers flexibility in managing Node.js versions.
Beta Was this translation helpful? Give feedback.
All reactions