[[+content_image]]
A
A
Alexander2020-09-22 14:29:29
1C-Bitrix
Alexander, 2020-09-22 14:29:29

How to install nodejs on BitrixVM?

Connecting turnip with node 14, as written here: https://tecadmin.net/install-latest-nodejs-and-npm... I check

:

[[email protected] ~]# 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

Everything seems to be ok.

To be safe, clear the cache
[[email protected] ~]# 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

Update:
[[email protected] ~]# 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


[[email protected] ~]# 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.

Yes, how so? Why 8.17?!

Naturally, he cannot install it, because there is no 8 in the turnip with 14 node 8:
[[email protected] ~]# 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.


Where to dig? Who is guilty? Yum? Or did something screw up in BitrixVM?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
S
Somewhere Intech, 2020-09-23
Madzhugin @Suntechnic

yum clean metadata
or
yum clean dbcache of the
dock

M
Michael Kim, 2020-09-22
@devjob

First remove the installed version and all references to nodejs , then you can install the new package. Bitrixvm already has nodejs used for push and pull module

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question