Software⏱️ 2 min read📅 2026-05-29

How to Fix: NPM - npm install fails with ENOENT mkdir error on Windows VDI (Node v24, n

Quick Answer: Check if the npm cache is corrupted. Try running `npm cache clean -f` and then `npm install` again.

To resolve the 'ENOENT mkdir' error when running `npm install` in a Windows VDI with Node v24 and no admin rights, follow these steps:

🔧 Proven Troubleshooting Steps

Method 1: Running npm with Elevated Privileges

  1. Step 1: Open the Command Prompt as an administrator by right-clicking on the Start menu and selecting 'Command Prompt (Admin)'

Method 2: Running npm with a Package Installer

  1. Step 1: Install the `npm` package using `npm install -g npm@latest`

Method 3: Running npm with a Virtual Environment

  1. Step 1: Create a new directory for your project and navigate to it in the Command Prompt

Method 4: Running npm with a Script Runner

  1. Step 1: Create a new file named `package.json` in your project directory and add the following script: `{

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions