V
V
VicTHOR2020-06-10 10:33:42
linux
VicTHOR, 2020-06-10 10:33:42

Centos 7 - how to update nodejs?

Launched a gallp on the server, it complained about the syntax in one of the plugins

module.exports = async (patterns, {force, dryRun, cwd = process.cwd(), ...options} = {}) => {
                                                                       ^^^

nodejs is installed version 6.17
Package 1:nodejs-6.17.1-1.el7.x86_64
and yum says there is nothing to update.. The site has version 12...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Brovko, 2020-06-10
@VicTHOR

Connect the official repository with the desired version https://github.com/nodesource/distributions/blob/m...
and then install it using the same yum

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question