添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I had installed nodejs before without nvm and then deleted it completely by uninstalling and deleting all files.

I am using windows 10.

It works when I use run powershell as administrator, but I am unable to use yarn in vscode.

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.

First check node is properly install in your system

  • Open CMD/Git CMD as administrator (Press Windows+R Type “cmd” and then press Ctrl+Shift+Enter)
  • Check list of Node version ( nvm list )
  • Use specific node version ( nvm use 17.7.1 )
  • Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.