Задать вопрос

Как установить nodejs на BitrixVM?

Подключая репу с 14 нодой, как написано тут: https://tecadmin.net/install-latest-nodejs-and-npm...

Проверяю:
[root@vm565647432 ~]# yum repoinfo nodesource
Failed to set locale, defaulting to C
Loaded plugins: etckeeper, fastestmirror, merge-conf, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.docker.ru
 * epel: mirror.linux-ia64.org
 * extras: mirror.linux-ia64.org
 * remi: mirror.reconn.ru
 * remi-php72: mirror.reconn.ru
 * remi-safe: mirror.reconn.ru
 * updates: mirror.linux-ia64.org
Repo-id      : nodesource/x86_64
Repo-name    : Node.js Packages for Enterprise Linux 7 - x86_64
Repo-status  : enabled
Repo-revision: 1576639351
Repo-updated : Wed Dec 18 03:23:13 2019
Repo-pkgs    : 119
Repo-size    : 1.7 G
Repo-baseurl : https://rpm.nodesource.com/pub_14.x/el/7/x86_64/
Repo-expire  : 21600 second(s) (last: Tue Sep 22 08:24:40 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/nodesource-el7.repo

repolist: 119

Все вроде ок.

Для надежности чистим кэш
[root@vm565647432 ~]# yum clean packages
Failed to set locale, defaulting to C
Loaded plugins: etckeeper, fastestmirror, merge-conf, ovl
Cleaning repos: base bitrix epel extras nodesource percona-release-noarch percona-release-x86_64 prel-release-noarch remi remi-php72 remi-safe runit updates yarn
1 package file removed

Апдейтим:
[root@vm565647432 ~]# yum check-update
Failed to set locale, defaulting to C
Loaded plugins: etckeeper, fastestmirror, merge-conf, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.docker.ru
 * epel: mirror.linux-ia64.org
 * extras: mirror.linux-ia64.org
 * remi: mirror.reconn.ru
 * remi-php72: mirror.reconn.ru
 * remi-safe: mirror.reconn.ru
 * updates: mirror.linux-ia64.org


[root@vm565647432 ~]# yum info nodejs
Failed to set locale, defaulting to C
Loaded plugins: etckeeper, fastestmirror, merge-conf, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.docker.ru
 * epel: mirror.linux-ia64.org
 * extras: mirror.linux-ia64.org
 * remi: mirror.reconn.ru
 * remi-php72: mirror.reconn.ru
 * remi-safe: mirror.reconn.ru
 * updates: mirror.linux-ia64.org
Available Packages
Name        : nodejs
Arch        : x86_64
Epoch       : 2
Version     : 8.17.0
Release     : 1nodesource
Size        : 18 M
Repo        : nodesource/x86_64
Summary     : JavaScript runtime
URL         : http://nodejs.org
License     : MIT and ASL 2.0 and ISC and BSD
Description : Node.js is a platform built on Chrome's JavaScript runtime
            : for easily building fast, scalable network applications.
            : Node.js uses an event-driven, non-blocking I/O model that
            : makes it lightweight and efficient, perfect for data-intensive
            : real-time applications that run across distributed devices.

Да как так-то? Почему 8.17?!

Естественно установить он ее не может, потому что в репе с 14 нодой 8 не водится:
[root@vm565647432 ~]# yum install nodejs
Failed to set locale, defaulting to C
Loaded plugins: etckeeper, fastestmirror, merge-conf, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.docker.ru
 * epel: mirror.linux-ia64.org
 * extras: mirror.linux-ia64.org
 * remi: mirror.reconn.ru
 * remi-php72: mirror.reconn.ru
 * remi-safe: mirror.reconn.ru
 * updates: mirror.linux-ia64.org
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:8.17.0-1nodesource will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                       Arch                                          Version                                                       Repository                                         Size
===================================================================================================================================================================================================================
Installing:
 nodejs                                        x86_64                                        2:8.17.0-1nodesource                                          nodesource                                         18 M

Transaction Summary
===================================================================================================================================================================================================================
Install  1 Package

Total download size: 18 M
Installed size: 55 M
Is this ok [y/d/N]: y
Downloading packages:
nodejs-8.17.0-1nodesource.x86_ FAILED                                          
https://rpm.nodesource.com/pub_14.x/el/7/x86_64/nodejs-8.17.0-1nodesource.x86_64.rpm: [Errno 14] HTTPS Error 404 - Not Found                                                     ]  0.0 B/s |    0 B  --:--:-- ETA 
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



Error downloading packages:
  2:nodejs-8.17.0-1nodesource.x86_64: [Errno 256] No more mirrors to try.


Куда копать? Кто виноват? Yum? Или что-то накрутили в BitrixVM?
  • Вопрос задан
  • 2035 просмотров
Подписаться 2 Простой 3 комментария
Решения вопроса 1
john36allTa
@john36allTa
alien glow of a dirty mind
yum clean metadata
или
yum clean dbcache
дока
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
@devjob
Удали сначала установленную версию и все ссылки на nodejs , после можно устанавлрвать новый пакет. В bitrixvm уже есть nodejs используется для модуля push and pull
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы