我正在使用nvm-windows 1.1.7版本。
我刚刚安装了节点11.9.0。
nvm会与此节点版本一起安装npm 6.5.0版。但是,已经有npm 6.7.0版本可用。
现在,npm i -g npm我得到:
npm ERR! path C:\Program Files\nodejs\npm.cmd
npm ERR! code EEXIST
npm ERR! Refusing to delete C:\Program Files\nodejs\npm.cmd: is outside C:\Program Files\nodejs\node_modules\npm and not a link
npm ERR! File exists: C:\Program Files\nodejs\npm.cmd
npm ERR! Move it away, and try again.
Run Code Online (Sandbox Code Playgroud)
我没有办法避免这种情况。