1

I have Node.js version 14.18.1 installed and I want to update to 16.10.0 for compatibility for a project. To upgrade I have installed the latest version of nvm (1.1.8) and did nvm install 16.10.0. And then nvm use 16.10.0 and got the error: exit status 145: The directory is not empty. I tried looking this up, but couldn't find anyone on the internet encountering the same issue.

I have also tried adding the path at C:\Users\*user*\AppData\Roaming\nvm\settings.txt to my system environment path, but that didn't work either. Does anyone have an idea as to what might work? Thank you.

Enes K.
  • 15
  • 1
  • 4
  • https://stackoverflow.com/questions/28313372/nvm-for-windows-not-working – mentat Nov 11 '21 at 01:12
  • Try this suggestion of deleting the folder for windows. https://github.com/coreybutler/nvm-windows/issues/674#issuecomment-956574752 – inrsaurabh Mar 14 '22 at 05:07

1 Answers1

6

I solved by:

Delete all contents of folder path: C:\Program Files\nodejs

and try to run nvm use 16.10.0 again.

bguiz
  • 27,371
  • 47
  • 154
  • 243
Anan K.
  • 76
  • 1
  • 3