【问题标题】:nvm 使用退出状态 1:访问被拒绝
【发布时间】:2022-01-09 14:54:45
【问题描述】:

我之前安装过没有nvm的nodejs,然后通过卸载并删除所有文件将其完全删除。

我使用的是 Windows 10。

当我以管理员身份运行 powershell 时它可以工作,但我无法在 vscode 中使用 yarn。

PS C:\Users\laveen> nvm ls

No installations recognized.
PS C:\Users\laveen> nvm install 14.18.1
Downloading node.js version 14.18.1 (64-bit)...
Complete
Creating C:\Users\laveen\AppData\Roaming\nvm\temp

Downloading npm version 6.14.15... Complete
Installing npm v6.14.15...

Installation complete. If you want to use this version, type

nvm use 14.18.1
PS C:\Users\laveen> nvm use 14.18.1
exit status 1: Access is denied.

【问题讨论】:

    标签: node.js npm yarnpkg nvm nvm-windows


    【解决方案1】:

    以管理员身份运行命令提示符。

    【讨论】:

      猜你喜欢
      • 2021-02-24
      • 2018-07-23
      • 1970-01-01
      • 2018-09-24
      • 2022-08-03
      • 2022-09-26
      • 2018-09-23
      • 2019-11-06
      相关资源
      最近更新 更多