Npm安装过程正在查找NVM文件夹



我最近从计算机上完全卸载了NVM。现在,当试图用";npm install-g@ionic/cli";,进程尝试使用旧NVM安装中的文件夹。

>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(\Nolist--->不再存在

npm安装文件夹为:

npm@7.0.3 C:Program Filesnodejsnode_modulesnpm

解决方案运行以下命令:

npm config delete prefix

有一个nodist安装,我还没有完成完整的卸载步骤。

检查系统中的PATH->高级系统设置->环境变量

最新更新