Join the community today
Become a Member

Cannot install Nodejs 4.x or higher after centmin installed

Discussion in 'Add Ons' started by Manhhailua, Jul 10, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    nvm method is good but preferred yum for easier updates for folks not familiar with nvm :)
     
    • Agree Agree x 1
    • Winner Winner x 1
  2. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    fixed in 123.09beta01 so update via centmin.sh menu option 23 submenu option 2, before trying addons/nodejs.sh again
    Code (Text):
    [[email protected] centminmod]# addons/nodejs.sh install
    
    ## Installing the NodeSource Node.js v4.x LTS Argon repo...
    
    
    ## Inspecting system...
    
    + rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release
    + uname -m
    
    ## Confirming "el7-x86_64" is supported...
    
    + curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'
    
    ## Downloading release setup RPM...
    
    + mktemp
    + curl -sL -o '/tmp/tmp.T4DabYfmnx' 'https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'
    
    ## Installing release setup RPM...
    
    + rpm -i --nosignature --force '/tmp/tmp.T4DabYfmnx'
    
    ## Cleaning up...
    
    + rm -f '/tmp/tmp.T4DabYfmnx'
    
    ## Checking for existing installations...
    
    + rpm -qa 'node|npm' | grep -v nodesource
    XNode.js v4.x LTS Argon == XNode.js v5.x
    
    ## Run `yum install -y nodejs` (as root) to install Node.js v4.x LTS Argon and npm.
    You may also need development tools to build native addons:
      `yum install -y gcc-c++ make`
    
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirror.aarnet.edu.au
     * extras: centos.mirror.serversaustralia.com.au
     * rpmforge: repoforge.mirror.digitalpacific.com.au
     * updates: mirror.aarnet.edu.au
    Resolving Dependencies
    --> Running transaction check
    ---> Package nodejs.x86_64 1:4.6.0-1nodesource.el7.centos will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package    Arch       Version                             Repository      Size
    ================================================================================
    Installing:
     nodejs     x86_64     1:4.6.0-1nodesource.el7.centos      nodesource     8.6 M
    
    Transaction Summary
    ================================================================================
    Install  1 Package
    
    Total download size: 8.6 M
    Installed size: 29 M
    Downloading packages:
    warning: /var/cache/yum/x86_64/7/nodesource/packages/nodejs-4.6.0-1nodesource.el7.centos.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 34fa74dd: NOKEY
    Public key for nodejs-4.6.0-1nodesource.el7.centos.x86_64.rpm is not installed
    Retrieving key from file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
    Importing GPG key 0x34FA74DD:
     Userid     : "NodeSource <[email protected]>"
     Fingerprint: 2e55 207a 95d9 944b 0cc9 3261 5ddb e8d4 34fa 74dd
     Package    : nodesource-release-el7-1.noarch (installed)
     From       : /etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Detected old npm client, removing...
      Installing : 1:nodejs-4.6.0-1nodesource.el7.centos.x86_64                 1/1
      Verifying  : 1:nodejs-4.6.0-1nodesource.el7.centos.x86_64                 1/1
    
    Installed:
      nodejs.x86_64 1:4.6.0-1nodesource.el7.centos                               
    
    Complete!
    /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
    [email protected] /usr/lib/node_modules/npm
    

    Code (Text):
    ---------------------------
    Node.js Version: -n
    v4.6.0
    ---------------------------
    npm Version: -n
    3.10.8
    ---------------------------
    
    node.js YUM install completed

    Code (Text):
    yum history list
    Loaded plugins: fastestmirror, priorities
    ID     | Command line             | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
        39 | -y install nodejs --disa | 2016-10-07 03:14 | Install        |    1 EE
        38 | history undo 37          | 2016-10-07 02:50 | Erase          |    3 EE
        37 | -y install nodejs --disa | 2016-10-07 02:37 | Install        |    3  <
        36 | -y -q install figlet     | 2016-10-07 02:36 | Install        |    1 >
        35 | -y -q install haveged rn | 2016-10-05 23:37 | Install        |    2  
        34 | -q -y install pure-ftpd  | 2016-10-05 23:37 | Install        |    3  
        33 | -y install perl-LWP-Prot | 2016-10-05 23:35 | Install        |    2  
        32 | -q -y install libmemcach | 2016-10-05 23:34 | Install        |    2  
        31 | -q -y install postfix-pe | 2016-10-05 23:33 | Install        |    4  
        30 | -y install mailx         | 2016-10-05 23:33 | Install        |    1  
        29 | -q -y install libmcrypt- | 2016-10-05 23:25 | Install        |    1  
        28 | -q -y install libmcrypt  | 2016-10-05 23:25 | Install        |    1  
        27 | -q -y install libicu lib | 2016-10-05 23:25 | Install        |    2  
        26 | -q -y install libxslt li | 2016-10-05 23:25 | Install        |    4  
        25 | -q -y install unixODBC-d | 2016-10-05 23:24 | Install        |    4  
        24 | -q -y install fio --disa | 2016-10-05 23:24 | Install        |    6  
        23 | -y install postfix net-s | 2016-10-05 23:23 | Install        |    3  
        22 | -q -y install perl-DBD-M | 2016-10-05 23:23 | Install        |    1  
        21 | -y install MariaDB-clien | 2016-10-05 23:22 | Install        |    8 EE
        20 | -y remove mariadb-libs   | 2016-10-05 23:22 | Erase          |    5 EE
    history list

    Code (Text):
    yum history info 39
    Loaded plugins: fastestmirror, priorities
    Transaction ID : 39
    Begin time     : Fri Oct  7 03:14:15 2016
    Begin rpmdb    : 738:602ce1d0842bc7b68cc233f21778c8433e4d2fe2
    End time       :            03:14:18 2016 (3 seconds)
    End rpmdb      : 739:4148cfe5705f18fb2d946d6d75961fad0d715409
    User           : root <root>
    Return-Code    : Success
    Command Line   : -y install nodejs --disableplugin=priorities --disablerepo=epel
    Transaction performed with:
        Installed     rpm-4.11.3-17.el7.x86_64                      @base
        Installed     yum-3.4.3-132.el7.centos.0.1.noarch           @base
        Installed     yum-metadata-parser-1.1.4-10.el7.x86_64       @anaconda
        Installed     yum-plugin-fastestmirror-1.1.31-34.el7.noarch @base
    Packages Altered:
        Install nodejs-1:4.6.0-1nodesource.el7.centos.x86_64 @nodesource
    Scriptlet output:
       1 Detected old npm client, removing...
    history info
     
    • Like Like x 1
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,288
    309
    83
    May 31, 2014
    Ratings:
    +577
    Local Time:
    4:07 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Testing nodejs.sh using the install parameter on Centos 7 using the latest Centminmod beta it seems that the download link is dead as i got:

    Code:
    https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodejs-6.10.2-2nodesource.el7.centos.x86_64.rpm: [Errno 14] HTTPS Error 404 - Not Found
    and

    Code:
    Error downloading packages:
      2:nodejs-6.10.2-2nodesource.el7.centos.x86_64: [Errno 256] No more mirrors to try.
     
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    got the /root/centminlogs/centminmod_nodejs_install_${DT}.log log file you can put up on gist.github.com or pastebin.com
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    3,288
    309
    83
    May 31, 2014
    Ratings:
    +577
    Local Time:
    4:07 PM
    Nginx-1.13.x
    MariaDB 10.1.x
  6. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    their installer seems to be getting wrong version of nodejs 6.10 instead of 4.8.2 hmm will have to check

    what is output for these commands
    Code (Text):
    yum list nodejs
    

    Code (Text):
    yum list nodejs --disableplugin=priorities --disablerepo=epel
    

    Code (Text):
    yum list nodejs --disableplugin=priorities
    
     
  7. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    strange just tested on OVH CentOS 7.3 server and works for me

    Code (Text):
    cd /usr/local/src/centminmod/addons
    ./nodejs.sh install
    
    ## Installing the NodeSource Node.js v4.x LTS Argon repo...
    
    
    ## Inspecting system...
    
    + rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release
    + uname -m
    
    ## Confirming "el7-x86_64" is supported...
    
    + curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'
    
    ## Downloading release setup RPM...
    
    + mktemp
    + curl -sL -o '/tmp/tmp.fQurporm3i' 'https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'
    
    ## Installing release setup RPM...
    
    + rpm -i --nosignature --force '/tmp/tmp.fQurporm3i'
    
    ## Cleaning up...
    
    + rm -f '/tmp/tmp.fQurporm3i'
    
    ## Checking for existing installations...
    
    + rpm -qa 'node|npm' | grep -v nodesource
    XNode.js v4.x LTS Argon == XNode.js v5.x
    

    Code (Text):
    ## Run `yum install -y nodejs` (as root) to install Node.js v4.x LTS Argon and npm.
    You may also need development tools to build native addons:
      `yum install -y gcc-c++ make`
    
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    Excluding mirror: ca.mirror.babylon.network
     * base: mirror2.evolution-host.com
    Excluding mirror: ca.mirror.babylon.network
     * elrepo: ftp.osuosl.org
    Excluding mirror: ca.mirror.babylon.network
     * extras: mirror2.evolution-host.com
     * rpmforge: repoforge.mirror.constant.com
    Excluding mirror: ca.mirror.babylon.network
     * updates: mirror2.evolution-host.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package nodejs.x86_64 1:4.8.2-2nodesource.el7.centos will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package    Arch       Version                             Repository      Size
    ================================================================================
    Installing:
     nodejs     x86_64     1:4.8.2-2nodesource.el7.centos      nodesource     8.4 M
    
    Transaction Summary
    ================================================================================
    Install  1 Package
    
    Total download size: 8.4 M
    Installed size: 29 M
    Downloading packages:
    warning: /var/cache/yum/x86_64/7/nodesource/packages/nodejs-4.8.2-2nodesource.el7.centos.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 34fa74dd: NOKEY
    Public key for nodejs-4.8.2-2nodesource.el7.centos.x86_64.rpm is not installed
    Retrieving key from file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
    Importing GPG key 0x34FA74DD:
     Userid     : "NodeSource <[email protected]>"
     Fingerprint: 2e55 207a 95d9 944b 0cc9 3261 5ddb e8d4 34fa 74dd
     Package    : nodesource-release-el7-1.noarch (installed)
     From       : /etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Warning: RPMDB altered outside of yum.
      Installing : 1:nodejs-4.8.2-2nodesource.el7.centos.x86_64                 1/1
      Verifying  : 1:nodejs-4.8.2-2nodesource.el7.centos.x86_64                 1/1
    
    Installed:
      nodejs.x86_64 1:4.8.2-2nodesource.el7.centos                                
    
    Complete!
    /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
    [email protected] /usr/lib/node_modules/npm
    
    ---------------------------
    Node.js Version: -n
    v4.8.2
    ---------------------------
    npm Version: -n
    4.5.0
    ---------------------------
    
    node.js YUM install completed
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    3,288
    309
    83
    May 31, 2014
    Ratings:
    +577
    Local Time:
    4:07 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    My friend seems to try to install it manually :(

    yum list nodejs

    Code:
    Loaded plugins: fastestmirror, priorities
    Loading mirror speeds from cached hostfile
     * base: ca.mirror.babylon.network
     * epel: ca.mirror.babylon.network
     * extras: ca.mirror.babylon.network
     * rpmforge: repoforge.mirror.constant.com
     * updates: ca.mirror.babylon.network
    403 packages excluded due to repository priority protections
    Available Packages
    nodejs.x86_64                                                                                                            2:6.10.2-2nodesource.el7.centos                                                                                                            nodesource
    yum list nodejs --disableplugin=priorities --disablerepo=epel

    Code:
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.bhs.mirrors.ovh.net
     * extras: centos.bhs.mirrors.ovh.net
     * rpmforge: repoforge.mirror.constant.com
     * updates: centos.bhs.mirrors.ovh.net
    Available Packages
    nodejs.x86_64                                                                                                            2:6.10.2-2nodesource.el7.centos                                                                                                            nodesource
    yum list nodejs --disableplugin=priorities

    Code:
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.bhs.mirrors.ovh.net
     * epel: ca.mirror.babylon.network
     * extras: centos.bhs.mirrors.ovh.net
     * rpmforge: repoforge.mirror.constant.com
     * updates: centos.bhs.mirrors.ovh.net
    Available Packages
    nodejs.x86_64                                                                                                            2:6.10.2-2nodesource.el7.centos                                                                                                            nodesource
    :(
     
    Last edited: May 1, 2017
  9. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    try removing nodesource repo manually at /etc/yum.repos.d/nodesource-el.repo
    Code (Text):
    cd /etc/yum.repos.d/
    rm -rf /etc/yum.repos.d/nodesource-el.repo
    yum clean all
    

    then try addons/nodejs.sh again and see what happens
     
  10. pamamolf

    pamamolf Premium Member Premium Member

    3,288
    309
    83
    May 31, 2014
    Ratings:
    +577
    Local Time:
    4:07 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    The same:

    Code:
    No Presto metadata available for nodesource
    https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodejs-6.10.2-2nodesource.el7.centos.x86_64.rpm: [Errno 14] HTTPS Error 404 - Not Found
    Trying other mirror.
    To address this issue please refer to the below knowledge base article
    
    https://access.redhat.com/articles/1320623
    
    If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/
    
    
    
    Error downloading packages:
      2:nodejs-6.10.2-2nodesource.el7.centos.x86_64: [Errno 256] No more mirrors to try.
    
    ./nodejs.sh: line 159: npm: command not found
    
    ---------------------------
    Node.js Version: -n
    ./nodejs.sh: line 164: node: command not found
    ---------------------------
    npm Version: -n
    ./nodejs.sh: line 167: npm: command not found
    ---------------------------
    
    node.js YUM install completed
    :(
     
  11. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    strange what output do you get from
    Code (Text):
    yum list nodejs --showduplicates -q
    

    Code (Text):
    yum list nodejs --showduplicates -q
    Installed Packages
    nodejs.x86_64                                                                                                  1:4.8.2-2nodesource.el7.centos                                                                                                  @nodesource
    Available Packages
    nodejs.x86_64                                                                                                  4.0.0-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.1.0-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.1.1-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.1.2-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.2.0-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.2.1-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.2.2-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.2.2-2nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.2.3-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.2.4-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.2.5-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.2.6-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.3.0-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.3.1-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.3.2-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.4.0-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.4.1-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.4.2-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.4.3-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.4.4-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.4.5-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  4.4.6-1nodesource.el7.centos                                                                                                    nodesource 
    nodejs.x86_64                                                                                                  1:4.4.7-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.4.7-2nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.5.0-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.6.0-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.6.1-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.6.2-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.7.0-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.7.1-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.7.2-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.7.3-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.8.0-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.8.1-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.8.2-1nodesource.el7.centos                                                                                                  nodesource 
    nodejs.x86_64                                                                                                  1:4.8.2-2nodesource.el7.centos                                                                                                  nodesource
    
     
  12. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    also contents of /etc/yum.repos.d/nodesource-el.repo ?
    mine shows
    Code (Text):
    [nodesource]
    name=Node.js Packages for Enterprise Linux 7 - $basearch
    baseurl=https://rpm.nodesource.com/pub_4.x/el/7/$basearch
    failovermethod=priority
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
    
    [nodesource-source]
    name=Node.js for Enterprise Linux 7 - $basearch - Source
    baseurl=https://rpm.nodesource.com/pub_4.x/el/7/SRPMS
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
    gpgcheck=1
    
     
  13. pamamolf

    pamamolf Premium Member Premium Member

    3,288
    309
    83
    May 31, 2014
    Ratings:
    +577
    Local Time:
    4:07 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    yum list nodejs --showduplicates -q

    Code:
    Available Packages
    nodejs.x86_64                                                                                                            6.0.0-1nodesource.el7.centos                                                                                                               nodesource
    nodejs.x86_64                                                                                                            6.1.0-1nodesource.el7.centos                                                                                                               nodesource
    nodejs.x86_64                                                                                                            6.2.0-1nodesource.el7.centos                                                                                                               nodesource
    nodejs.x86_64                                                                                                            6.2.1-1nodesource.el7.centos                                                                                                               nodesource
    nodejs.x86_64                                                                                                            6.2.2-1nodesource.el7.centos                                                                                                               nodesource
    nodejs.x86_64                                                                                                            1:6.3.0-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            1:6.3.1-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            1:6.4.0-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            1:6.6.0-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            1:6.7.0-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            2:6.8.0-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            2:6.8.1-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            2:6.9.0-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            2:6.9.1-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            2:6.9.2-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            2:6.9.3-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            2:6.9.4-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            2:6.9.5-1nodesource.el7.centos                                                                                                             nodesource
    nodejs.x86_64                                                                                                            2:6.10.0-1nodesource.el7.centos                                                                                                            nodesource
    nodejs.x86_64                                                                                                            2:6.10.1-1nodesource.el7.centos                                                                                                            nodesource
    nodejs.x86_64                                                                                                            2:6.10.2-1nodesource.el7.centos                                                                                                            nodesource
    nodejs.x86_64                                                                                                            2:6.10.2-2nodesource.el7.centos                                                                                                            nodesource

    /etc/yum.repos.d/nodesource-el.repo

    Code:
    [nodesource]
    name=Node.js Packages for Enterprise Linux 7 - $basearch
    baseurl=https://rpm.nodesource.com/pub_4.x/el/7/$basearch
    failovermethod=priority
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
    
    [nodesource-source]
    name=Node.js for Enterprise Linux 7 - $basearch - Source
    baseurl=https://rpm.nodesource.com/pub_4.x/el/7/SRPMS
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
    gpgcheck=1
     
  14. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  15. pamamolf

    pamamolf Premium Member Premium Member

    3,288
    309
    83
    May 31, 2014
    Ratings:
    +577
    Local Time:
    4:07 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    I can see that the link that the script try to load is dead:

    Code:
    https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodejs-6.10.2-2nodesource.el7.centos.x86_64.rpm
    so i thought replacing the link should work but it seems that is not the case?

    From history i can see that he use:

    Code:
    wget https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.xz
    tar --strip-components 1 -xzvf node-v* -C /usr/local
    if that helps......

    and

    Code:
    curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
    yum -y install nodejs
    I am sure that he mess up and there is not a bug :(
     
  16. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    you mean you friend previously manually installed nodejs ? then yes you'd need to sort that out first
     
  17. pamamolf

    pamamolf Premium Member Premium Member

    3,288
    309
    83
    May 31, 2014
    Ratings:
    +577
    Local Time:
    4:07 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    yes :(

    i know i was just post here for any clean instructions of the previous install if anyone was able to help.....

    he was follow this tutorial:

    Installing Node.js via package manager | Node.js

    and it seems there is no way to revert that so i will be able to use your nodejs.sh :(
     
  18. eva2000

    eva2000 Administrator Staff Member

    40,186
    8,884
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,693
    Local Time:
    11:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    if he did that then just go back through yum history and undo the transaction for that installation first and removal any other nodesource .repo files in /etc/yum.repos.d/
     
  19. pamamolf

    pamamolf Premium Member Premium Member

    3,288
    309
    83
    May 31, 2014
    Ratings:
    +577
    Local Time:
    4:07 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    It is already removed:

    yum history list

    Code:
       112 | remove nodejs            | 2017-04-30 14:09 | Erase          |    1  
       111 | -y install nodejs        | 2017-04-30 13:34 | Install        |    1  <
       110 | update --disableplugin=p | 2017-04-29 21:26 | I, U           |   13 >E
       109 | update --disableplugin=p | 2017-04-21 03:39 | Update         |    9  
       108 | update --disableplugin=p | 2017-04-20 02:04 | Update         |   13
    112 already remove that but i was run also:

    yum history undo 111

    Code:
    Undoing transaction 111, from Sun Apr 30 13:34:18 2017
        Install nodejs-2:6.10.2-2nodesource.el7.centos.x86_64 @nodesource
    No package matched to remove: nodejs-2:6.10.2-2nodesource.el7.centos
    history undo
    there is nothing related on the system now .... but the script nodejs.sh tries to install from a link that is dead....

    repos:

    Code:
    CentOS-Base.OLD   CentOS-CR.repo         CentOS-Media.repo    city-fan.org.OLD   epel.repo          mirrors-rpmforge                 mirrors-rpmforge.rpmsave          percona-release.OLD   remi-php54.repo  remi.repo         remi-safe.repo.rpmnew  varnish-4.1.OLD
    CentOS-Base.repo  CentOS-Debuginfo.repo  CentOS-Sources.repo  city-fan.org.repo  epel-testing.repo  mirrors-rpmforge-extras          mirrors-rpmforge-testing          percona-release.repo  remi-php70.repo  remi.repo.rpmnew  rpmforge.OLD           varnish-4.1.repo
    CentOS-CR.OLD     CentOS-fasttrack.repo  CentOS-Vault.repo    epel.OLD           mariadb.repo       mirrors-rpmforge-extras.rpmsave  mirrors-rpmforge-testing.rpmsave  remi.OLD              remi-php71.repo  remi-safe.repo    rpmforge.repo
     
  20. pamamolf

    pamamolf Premium Member Premium Member

    3,288
    309
    83
    May 31, 2014
    Ratings:
    +577
    Local Time:
    4:07 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok i solve it :)

    I am posting here so if other members have the same issue to be able to solve it :)

    After running the script and got that issue i fix it running:

    Code:
    cd /etc/yum.repos.d/
    rm -rf /etc/yum.repos.d/nodesource-el.repo
    yum clean all
    yum update
    and then run the script again :)

    It seems after clearing the cache using yum clean all it is a must to run yum update so it will get a new correct list remotely :)

    Thanks George for your help :)
     
    • Informative Informative x 1
..