我之前安装了nodejs,没有nvm,然后通过卸载并删除所有文件将其彻底删除。
我使用的是 Windows 10。
当我以管理员身份使用 run 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.
Run Code Online (Sandbox Code Playgroud) 每次尝试克隆新存储库时,我都会收到此错误,第二次克隆它时,它工作正常。可能是什么原因造成的以及如何解决?
Cloning into 'Important-Documents'...
remote: Enumerating objects: 83, done.
remote: Counting objects: 100% (83/83), done.
remote: Compressing objects: 100% (81/81), done.
error: RPC failed; curl 92 HTTP/2 stream 7 was not closed cleanly before end of the underlying stream
error: 4241 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Run Code Online (Sandbox Code Playgroud)