Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Node.js & NPM

macOS Intune

Overview

This deployment package provisions Node.js (and its package manager, npm), an essential runtime for frontend and backend developers across the organization.

What it does

  • Detection: Executes a sub-shell command (brew list node) to verify if Node.js is already installed in the user's local Homebrew cellar.
  • Privilege Dropping: Because Intune runs as root (machine context) but Homebrew requires user-level permissions, the script dynamically identifies the logged-in console user and drops privileges via sudo -u.
  • Remediation: Installs the node formula silently in the background, ensuring developers have access to the latest LTS build immediately upon login.

Intune Deployment Configuration

  • Upload script: install-node.sh
  • Run script as signed-in user: No ⚠️ (The script must start as root to execute its internal privilege-dropping logic securely)