gpt4 book ai didi

node.js - NVM 无法在 ubuntu 18.04 上安装 nodejs

转载 作者:行者123 更新时间:2023-12-04 07:38:17 24 4
gpt4 key购买 nike

我尝试在 ubuntu 18.04 上使用 nvm 安装 nodejs。但是每次它都会抛出以下错误堆栈

pasindu@pasindu-HP-EliteBook-850-G7-Notebook-PC:~$ nvm install 0.10.35

Downloading and installing node v0.10.35...
Downloading https://nodejs.org/dist/v0.10.35/node-v0.10.35-linux-x64.tar.gz...
Warning: Failed to create the file
Warning: /home/pasindu/.nvm/.cache/bin/node-v0.10.35-linux-x64/node-v0.10.35-li
Warning: nux-x64.tar.gz: Permission denied
curl: (23) Failure writing output to destination

Binary download from https://nodejs.org/dist/v0.10.35/node-v0.10.35-linux-x64.tar.gz failed, trying source.
grep: /home/pasindu/.nvm/.cache/bin/node-v0.10.35-linux-x64/node-v0.10.35-linux-x64.tar.gz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
Detected that you have 12 CPU core(s)
Running with 11 threads to speed up the build
Downloading https://nodejs.org/dist/v0.10.35/node-v0.10.35.tar.gz...
Warning: Failed to create the file
Warning: /home/pasindu/.nvm/.cache/src/node-v0.10.35/node-v0.10.35.tar.gz:
Warning: Permission denied
curl: (23) Failure writing output to destination

Binary download from https://nodejs.org/dist/v0.10.35/node-v0.10.35.tar.gz failed, trying source.
grep: /home/pasindu/.nvm/.cache/src/node-v0.10.35/node-v0.10.35.tar.gz: No such file or directory
Provided file to checksum does not exist.

最佳答案

可能是snap curl的问题,见here ,因为我一开始用snap安装curl,老是遇到这个问题,后来用sudo snap remove curl去掉curl并使用 sudo apt install curl 重新安装它,我现在的curl版本是 7.68.0 .然后解决了它。

关于node.js - NVM 无法在 ubuntu 18.04 上安装 nodejs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67633785/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com