Lucas Rivas
Lucas Rivas

Reputation: 33

Npm install process is looking for NVM folder

I recently completely uninstalled NVM from my computer. Now when trying to install IONIC with "npm install -g @ionic/cli", the process try to use a folder from the old NVM installation.

>npm install -g @ionic/cli
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Program Files (x86)\Nodist
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Program Files (x86)\Nodist'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

C:\Program Files (x86)\Nodist ---> Is not existing anymore

The npm instalaction folder is:

[email protected] C:\Program Files\nodejs\node_modules\npm

Upvotes: 0

Views: 587

Answers (2)

Lucas Rivas
Lucas Rivas

Reputation: 33

The solution was running the following command:

npm config delete prefix

There was a nodist installation and I had not done the complete uninstallation steps.

Upvotes: 2

Nikhil Tyagi
Nikhil Tyagi

Reputation: 21

Check PATH in System->Advanced System Settings-> Environment variables

Upvotes: 0

Related Questions