我正在运行带有 Webmin 的 Centos 7 服务器,我在其中安装了 Nodejs 和 Node-source repo。
\n从上周开始,由于校验和问题,我无法更新到nodejs-10.22.0-1nodesource.x86:
\n Downloading packages:\n Delta RPMs disabled because /usr/bin/applydeltarpm not installed.\n nodejs-10.22.0-1nodesource.x86 FAILED MB/s | 18 MB 00:00:00 ETA \n https://rpm.nodesource.com/pub_10.x/el/7/x86_64/nodejs-10.22.0-1nodesource.x86_64.rpm:\n [Errno -1] Le paquet ne correspond pas au t\xc3\xa9l\xc3\xa9chargement attendu. \n Suggestion\xc2\xa0: ex\xc3\xa9cutez yum --enablerepo=nodesource clean metadata\n Essai d'un autre miroir.\n \n Error downloading packages:\n 2:nodejs-10.22.0-1nodesource.x86_64: [Errno 256] No more mirrors to try.\nRun Code Online (Sandbox Code Playgroud)\n我尝试使用yum --enablerepo=nodesource clean metadata或清理缓存yum clean all,但没有任何效果。
有人也遇到这个错误吗?
\n这是使用的 yum 存储库:
\n [nodesource]\n name=Node.js Packages for Enterprise Linux 7 - $basearch\n baseurl=https://rpm.nodesource.com/pub_10.x/el/7/$basearch\n failovermethod=priority\n enabled=1\n gpgcheck=1\n gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL\nRun Code Online (Sandbox Code Playgroud)\n
Jam*_*mes 11
不确定这是否是太晚的回复,但我也遇到了这个问题,发现首先删除 nodejs 和 npm 有帮助。这些是我使用的命令;
sudo yum install -y gcc-c++ make curl
curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash -
sudo yum remove -y nodejs npm
sudo yum clean all
sudo yum list available nodejs
sudo yum install -y nodejs
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4836 次 |
| 最近记录: |