Get the most out of your Centmin Mod LEMP stack
Become a Member

Cannot install Nodejs 4.x or higher after centmin installed

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

  1. Manhhailua

    Manhhailua Member

    39
    2
    8
    Jul 7, 2016
    Hanoi
    Ratings:
    +5
    Local Time:
    3:53 PM
    1.11.1
    10.0.x
    I try to install nodejs using yum on my VPS after installed centmin. But the installed version is always 0.10.x (0.10.42). I strictly followed the Nodejs official installation instruction.
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,054
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    6:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    • using Centmin Mod 123.09beta01 or 123.08stable ?
    • centos 6 or 7 ?
    • which version of node.js you trying to install ?
    • exact command used ?
    Looks like method outlined at Installing Node.js via package manager | Node.js has added centos 5 and 6 support now. When I was developing addons/nodejs.sh installer it only supported centos 7. So for centos 6 you need to source compile node.js for versions >0.10

    Centmin Mod 123.09beta01 has included addons/nodejs.sh install just for this that detects centos 6 or 7 and installs the appropriate method where centos 6 gets node.js source compiled and centos 7 gets nodesource YUM repo install method.

    so in SSH type
    Code (Text):
    cd /usr/local/src/centminmod/addons
    ./nodejs.sh install
    

    on CentOS 7 output would be as follows:
    Code (Text):
    ./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.pt8RGvVVdu' '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.pt8RGvVVdu'
    
    ## Cleaning up...
    
    + rm -f '/tmp/tmp.pt8RGvVVdu'
    
    ## 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: centos.mirror.serversaustralia.com.au
     * epel: fedora.mirror.serversaustralia.com.au
     * extras: mirror.aarnet.edu.au
     * rpmforge: mirror.ventraip.net.au
     * updates: centos.mirror.serversaustralia.com.au
    Resolving Dependencies
    --> Running transaction check
    ---> Package nodejs.x86_64 1:4.4.7-1nodesource.el7.centos will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package    Arch       Version                             Repository      Size
    ================================================================================
    Installing:
     nodejs     x86_64     1:4.4.7-1nodesource.el7.centos      nodesource     8.6 M
    
    Transaction Summary
    ================================================================================
    Install  1 Package
    
    Total download size: 8.6 M
    Installed size: 30 M
    Downloading packages:
    warning: /var/cache/yum/x86_64/7/nodesource/packages/nodejs-4.4.7-1nodesource.el7.centos.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 34fa74dd: NOKEY
    Public key for nodejs-4.4.7-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 <gpg-rpm@nodesource.com>"
     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.4.7-1nodesource.el7.centos.x86_64                 1/1 
      Verifying  : 1:nodejs-4.4.7-1nodesource.el7.centos.x86_64                 1/1 
    
    Installed:
      nodejs.x86_64 1:4.4.7-1nodesource.el7.centos                                  
    
    Complete!
    /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
    npm@3.10.5 /usr/lib/node_modules/npm
    
    ---------------------------
    Node.js Version: -n
    v4.4.7
    ---------------------------
    npm Version: -n
    3.10.5
    ---------------------------
    
    node.js source install completed
    

    if you're on CentOS 6, you might wait till i update addons/nodejs.sh for nodesource YUM repo install instead of source install :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    29,054
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    6:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  4. Manhhailua

    Manhhailua Member

    39
    2
    8
    Jul 7, 2016
    Hanoi
    Ratings:
    +5
    Local Time:
    3:53 PM
    1.11.1
    10.0.x
    - I'm using latest table version of Centmin (123.08stable)
    - My centos version is 7 (x64 of course)
    - Trying to install Node 4.x for further purposes of using Ghost Blog
    - Exact commands:
    Code:
    $ curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
    $ yum -y install nodejs
     
  5. Manhhailua

    Manhhailua Member

    39
    2
    8
    Jul 7, 2016
    Hanoi
    Ratings:
    +5
    Local Time:
    3:53 PM
    1.11.1
    10.0.x
  6. eva2000

    eva2000 Administrator Staff Member

    29,054
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    6:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    fyi 123.09beta01 just got updated so run centmin.sh menu option 23 submenu option 2 to update the code

    addons/node.js now works for centos 6 and 7 for nodesource YUM repo method of install

    example on centos 6 with addons/node.js
    Code (Text):
    ./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 "el6-x86_64" is supported...
    
    + curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_4.x/el/6/x86_64/nodesource-release-el6-1.noarch.rpm'
    
    ## Downloading release setup RPM...
    
    + mktemp
    + curl -sL -o '/tmp/tmp.SHt7s4OCv8' 'https://rpm.nodesource.com/pub_4.x/el/6/x86_64/nodesource-release-el6-1.noarch.rpm'
    
    ## Installing release setup RPM...
    
    + rpm -i --nosignature --force '/tmp/tmp.SHt7s4OCv8'
    
    ## Cleaning up...
    
    + rm -f '/tmp/tmp.SHt7s4OCv8'
    
    ## 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, security
    Setting up Install Process
    Loading mirror speeds from cached hostfile
     * base: mirror.aarnet.edu.au
     * epel: mirror.as24220.net
     * extras: mirror.aarnet.edu.au
     * rpmforge: mirror.as24220.net
     * updates: mirror.aarnet.edu.au
    Resolving Dependencies
    --> Running transaction check
    ---> Package nodejs.x86_64 1:4.4.7-1nodesource.el6 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package      Arch         Version                       Repository        Size
    ================================================================================
    Installing:
     nodejs       x86_64       1:4.4.7-1nodesource.el6       nodesource       8.7 M
    
    Transaction Summary
    ================================================================================
    Install       1 Package(s)
    
    Total download size: 8.7 M
    Installed size: 29 M
    Downloading Packages:
    warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID 34fa74dd: NOKEY
    Retrieving key from file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
    Importing GPG key 0x34FA74DD:
     Userid : NodeSource <gpg-rpm@nodesource.com>
     Package: nodesource-release-el6-1.noarch (installed)
     From   : /etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Warning: RPMDB altered outside of yum.
      Installing : 1:nodejs-4.4.7-1nodesource.el6.x86_64                        1/1 
      Verifying  : 1:nodejs-4.4.7-1nodesource.el6.x86_64                        1/1 
    
    Installed:
      nodejs.x86_64 1:4.4.7-1nodesource.el6                                        
    
    Complete!
    /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
    npm@3.10.5 /usr/lib/node_modules/npm
    
    ---------------------------
    Node.js Version: -n
    v4.4.7
    ---------------------------
    npm Version: -n
    3.10.5
    ---------------------------
    
    node.js source install completed
    
     
    • Agree Agree x 1
  7. Manhhailua

    Manhhailua Member

    39
    2
    8
    Jul 7, 2016
    Hanoi
    Ratings:
    +5
    Local Time:
    3:53 PM
    1.11.1
    10.0.x
    I've used "Ctrl + C" to cancelled "Setup Centmin Mod GitHub Environment". Now I cannot access Centmin menu from command "centmin". What is the best way to fix this?
     
  8. eva2000

    eva2000 Administrator Staff Member

    29,054
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    6:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    addons/nodejs.sh does basically what is outlined at Installing Node.js via package manager | Node.js

    just need to tag on the --disableplugin=priorities flag due to yum priorities being setup (explained here)
    Code (Text):
    yum -y install nodejs --disableplugin=priorities
    

    yum priorities just ensures you don't incorrectly install a 3rd party yum package that can conflict with base yum packages etc
     
    Last edited: Jul 10, 2016
  9. eva2000

    eva2000 Administrator Staff Member

    29,054
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    6:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    might need to try the pre .07 method outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS and setup the git source manually

    replace 123.09beta01 with 123.08stable or the branch you want
    Code (Text):
    cd /usr/local/src
    rm -rf centminmod*
    git clone https://github.com/centminmod/centminmod.git centminmod
    cd centminmod
    git checkout -f 123.09beta01
    ./centmin.sh
    
     
    • Winner Winner x 1
  10. Manhhailua

    Manhhailua Member

    39
    2
    8
    Jul 7, 2016
    Hanoi
    Ratings:
    +5
    Local Time:
    3:53 PM
    1.11.1
    10.0.x
    While reinstallation new beta version... It asked me to enter email then secondary email... I entered my gmail for the first one and nothing for secondary one. I forgot to read carefully, so, what is that for? Hope that it will not be a must-through-step in the future. :|
     
  11. eva2000

    eva2000 Administrator Staff Member

    29,054
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    6:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    both need filling out primary and secondary emails, you can use same email for both if you want. It's for future developments in terms of centmin mod auto notifications or other addons which require an email address. It does nothing right now but in future I hope to have stuff like email notify when new centmin mod, php, nginx versions are released etc
     
  12. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    3:53 AM
    1.11.x
    10.1.18
    Is there any way to download the NodeJS 4.x version over the NodeJS 6? Trying to work with Ghost, but it's very specific in the NodeJS versions. Everything keeps wanting to default to the Node 6 version.
     
  13. Manhhailua

    Manhhailua Member

    39
    2
    8
    Jul 7, 2016
    Hanoi
    Ratings:
    +5
    Local Time:
    3:53 PM
    1.11.1
    10.0.x
    • Informative Informative x 1
  14. eva2000

    eva2000 Administrator Staff Member

    29,054
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    6:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    install via addons/nodejs.sh ? should default to node.js 4.x if you use addons/nodejs.sh
     
  15. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    3:53 AM
    1.11.x
    10.1.18
    I actually used that earlier and it automatically installed node.js 6.7. :)
     
  16. eva2000

    eva2000 Administrator Staff Member

    29,054
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    6:53 PM
    Nginx 1.13.x
    MariaDB 5.5
  17. eva2000

    eva2000 Administrator Staff Member

    29,054
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    6:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    indeed your right it's installing wrong version !

    Code (Text):
    rpm -qa 'node|npm' | grep -v nodesource
    nodejs-6.7.0-107.el7.x86_64
    npm-3.10.3-107.el7.x86_64
     
  18. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    3:53 AM
    1.11.x
    10.1.18
    There's also something about an error with an npmlog. @__@

    Code:
    [root@localhost 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.Xq3fBc8iVk' '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.Xq3fBc8iVk'
    
    ## Cleaning up...
    
    + rm -f '/tmp/tmp.Xq3fBc8iVk'
    
    ## 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: mirrors.linode.com
     * epel: fedora-epel.mirror.lstn.net
     * extras: mirrors.linode.com
     * rpmforge: mirror.lstn.net
     * updates: mirrors.linode.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package nodejs.x86_64 1:6.7.0-107.el7 will be installed
    --> Processing Dependency: npm = 1:3.10.3-107.el7 for package: 1:nodejs-6.7.0-107.el7.x86_64
    --> Running transaction check
    ---> Package npm.x86_64 1:3.10.3-107.el7 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package         Arch            Version                    Repository     Size
    ================================================================================
    Installing:
     nodejs          x86_64          1:6.7.0-107.el7            epel          4.6 M
    Installing for dependencies:
     npm             x86_64          1:3.10.3-107.el7           epel          2.5 M
    
    Transaction Summary
    ================================================================================
    Install  1 Package (+1 Dependent package)
    
    Total download size: 7.0 M
    Installed size: 26 M
    Downloading packages:
    --------------------------------------------------------------------------------
    Total                                              2.3 MB/s | 7.0 MB  00:02
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : 1:npm-3.10.3-107.el7.x86_64                                  1/2
      Installing : 1:nodejs-6.7.0-107.el7.x86_64                                2/2
      Verifying  : 1:nodejs-6.7.0-107.el7.x86_64                                1/2
      Verifying  : 1:npm-3.10.3-107.el7.x86_64                                  2/2
    
    Installed:
      nodejs.x86_64 1:6.7.0-107.el7
    
    Dependency Installed:
      npm.x86_64 1:3.10.3-107.el7
    
    Complete!
    npm WARN skippingAction Module is inside a symlinked module: not running update balanced-match@0.4.2 node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match
    npm WARN skippingAction Module is inside a symlinked module: not running update brace-expansion@1.1.6 node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion
    npm WARN skippingAction Module is inside a symlinked module: not running update minimatch@3.0.3 node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/minimatch
    npm WARN skippingAction Module is inside a symlinked module: not running update balanced-match@0.4.2 node_modules/npm/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match
    npm WARN skippingAction Module is inside a symlinked module: not running update brace-expansion@1.1.6 node_modules/npm/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion
    npm WARN skippingAction Module is inside a symlinked module: not running update minimatch@3.0.3 node_modules/npm/node_modules/glob/node_modules/minimatch
    npm WARN skippingAction Module is inside a symlinked module: not running update balanced-match@0.4.2 node_modules/npm/node_modules/init-package-json/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match
    npm WARN skippingAction Module is inside a symlinked module: not running update brace-expansion@1.1.6 node_modules/npm/node_modules/init-package-json/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion
    npm WARN skippingAction Module is inside a symlinked module: not running update minimatch@3.0.3 node_modules/npm/node_modules/init-package-json/node_modules/glob/node_modules/minimatch
    npm WARN skippingAction Module is inside a symlinked module: not running remove lodash._baseclone@4.5.3 node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._baseclone
    npm WARN skippingAction Module is inside a symlinked module: not running remove lodash._baseflatten@4.2.1 node_modules/npm/node_modules/lodash.union/node_modules/lodash._baseflatten
    npm WARN skippingAction Module is inside a symlinked module: not running remove lodash.rest@4.0.3 node_modules/npm/node_modules/lodash.union/node_modules/lodash.rest
    npm WARN skippingAction Module is inside a symlinked module: not running remove lodash._basedifference@4.5.0 node_modules/npm/node_modules/lodash.without/node_modules/lodash._basedifference
    npm WARN skippingAction Module is inside a symlinked module: not running remove lodash.rest@4.0.3 node_modules/npm/node_modules/lodash.without/node_modules/lodash.rest
    npm WARN skippingAction Module is inside a symlinked module: not running remove glob@4.5.3 node_modules/npm/node_modules/node-gyp/node_modules/glob
    npm WARN skippingAction Module is inside a symlinked module: not running remove lru-cache@2.7.3 node_modules/npm/node_modules/node-gyp/node_modules/minimatch/node_modules/lru-cache
    npm WARN skippingAction Module is inside a symlinked module: not running remove sigmund@1.0.1 node_modules/npm/node_modules/node-gyp/node_modules/minimatch/node_modules/sigmund
    npm WARN skippingAction Module is inside a symlinked module: not running update minimatch@3.0.3 node_modules/npm/node_modules/node-gyp/node_modules/minimatch
    npm WARN skippingAction Module is inside a symlinked module: not running remove ansi@0.3.1 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/ansi
    npm WARN skippingAction Module is inside a symlinked module: not running remove lodash.pad@4.4.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad
    npm WARN skippingAction Module is inside a symlinked module: not running remove lodash.padend@4.5.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padend
    npm WARN skippingAction Module is inside a symlinked module: not running remove lodash.padstart@4.5.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padstart
    npm WARN skippingAction Module is inside a symlinked module: not running update gauge@2.6.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge
    npm WARN skippingAction Module is inside a symlinked module: not running update npmlog@3.1.2 node_modules/npm/node_modules/node-gyp/node_modules/npmlog
    npm WARN skippingAction Module is inside a symlinked module: not running update es5-ext@0.10.12 node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext
    npm WARN skippingAction Module is inside a symlinked module: not running update es6-symbol@3.1.0 node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol
    npm WARN skippingAction Module is inside a symlinked module: not running update concat-stream@1.5.2 node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream
    npm WARN skippingAction Module is inside a symlinked module: not running update retry@0.10.0 node_modules/npm/node_modules/npm-registry-client/node_modules/retry
    npm WARN skippingAction Module is inside a symlinked module: not running update string-width@1.0.2 node_modules/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width
    npm WARN skippingAction Module is inside a symlinked module: not running update balanced-match@0.4.2 node_modules/npm/node_modules/read-package-json/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match
    npm WARN skippingAction Module is inside a symlinked module: not running update brace-expansion@1.1.6 node_modules/npm/node_modules/read-package-json/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion
    npm WARN skippingAction Module is inside a symlinked module: not running update minimatch@3.0.3 node_modules/npm/node_modules/read-package-json/node_modules/glob/node_modules/minimatch
    npm WARN skippingAction Module is inside a symlinked module: not running remove lru-cache@4.0.1 node_modules/npm/node_modules/request/node_modules/aws4/node_modules/lru-cache
    npm WARN skippingAction Module is inside a symlinked module: not running update aws4@1.4.1 node_modules/npm/node_modules/request/node_modules/aws4
    npm WARN skippingAction Module is inside a symlinked module: not running update process-nextick-args@1.0.7 node_modules/npm/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args
    npm WARN skippingAction Module is inside a symlinked module: not running update jsprim@1.3.0 node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/jsprim
    npm WARN skippingAction Module is inside a symlinked module: not running remove assert-plus@1.0.0 node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/dashdash/node_modules/assert-plus
    npm WARN skippingAction Module is inside a symlinked module: not running update dashdash@1.14.0 node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/dashdash
    npm WARN skippingAction Module is inside a symlinked module: not running update tweetnacl@0.13.3 node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/tweetnacl
    npm WARN skippingAction Module is inside a symlinked module: not running update sshpk@1.9.2 node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk
    npm WARN skippingAction Module is inside a symlinked module: not running update mime-db@1.23.0 node_modules/npm/node_modules/request/node_modules/mime-types/node_modules/mime-db
    npm WARN skippingAction Module is inside a symlinked module: not running update mime-types@2.1.11 node_modules/npm/node_modules/request/node_modules/mime-types
    npm WARN skippingAction Module is inside a symlinked module: not running update oauth-sign@0.8.2 node_modules/npm/node_modules/request/node_modules/oauth-sign
    npm WARN skippingAction Module is inside a symlinked module: not running update qs@6.2.1 node_modules/npm/node_modules/request/node_modules/qs
    npm WARN skippingAction Module is inside a symlinked module: not running update tough-cookie@2.3.1 node_modules/npm/node_modules/request/node_modules/tough-cookie
    npm WARN skippingAction Module is inside a symlinked module: not running update tunnel-agent@0.4.3 node_modules/npm/node_modules/request/node_modules/tunnel-agent
    /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
    npm WARN update-linked node_modules/npm/node_modules/graceful-fs needs updating to 4.1.6 from 4.1.4 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/inherits needs updating to 2.0.3 from 2.0.1 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/once needs updating to 1.4.0 from 1.3.3 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/glob needs updating to 7.0.6 from 7.0.4 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/readable-stream needs updating to 2.1.5 from 2.1.4 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/request needs updating to 2.74.0 from 2.72.0 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/rimraf needs updating to 2.5.4 from 2.5.2 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/semver needs updating to 5.3.0 from 5.1.0 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/which needs updating to 1.2.11 from 1.2.10 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/fstream-npm needs updating to 1.2.0 from 1.1.0 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/lodash.clonedeep needs updating to 4.5.0 from 4.3.2 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/lodash.union needs updating to 4.6.0 from 4.4.0 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/lodash.uniq needs updating to 4.5.0 from 4.3.0 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/lodash.without needs updating to 4.4.0 from 4.2.0 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/node-gyp needs updating to 3.4.0 from 3.3.1 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/npm-registry-client needs updating to 7.2.1 from 7.1.2 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/npm-user-validate needs updating to 0.1.5 from 0.1.4 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/npmlog needs updating to 4.0.0 from 3.1.2 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/retry needs updating to 0.10.0 from 0.9.0 but we can't, as it's a symlink
    npm WARN update-linked node_modules/npm/node_modules/write-file-atomic needs updating to 1.2.0 from 1.1.4 but we can't, as it's a symlink
    /usr/lib
    └─┬ npm@3.10.8
      ├─┬ node-gyp@3.4.0
      │ ├─┬ minimatch@3.0.3
      │ │ └─┬ brace-expansion@1.1.6
      │ │   ├── balanced-match@0.4.2
      │ │   └── concat-map@0.0.1
      │ └─┬ npmlog@3.1.2
      │   ├── console-control-strings@1.1.0
      │   ├─┬ gauge@2.6.0
      │   │ ├── has-color@0.1.7
      │   │ ├── object-assign@4.1.0
      │   │ ├── signal-exit@3.0.0
      │   │ ├─┬ string-width@1.0.2
      │   │ │ ├─┬ code-point-at@1.0.0
      │   │ │ │ └── number-is-nan@1.0.0
      │   │ │ └─┬ is-fullwidth-code-point@1.0.0
      │   │ │   └── number-is-nan@1.0.0
      │   │ └── wide-align@1.1.0
      │   └── set-blocking@2.0.0
      ├─┬ npm-registry-client@7.2.1
      │ └─┬ npmlog@3.1.2
      │   ├─┬ are-we-there-yet@1.1.2
      │   │ └── delegates@1.0.0
      │   ├── console-control-strings@1.1.0
      │   ├─┬ gauge@2.6.0
      │   │ ├── has-color@0.1.7
      │   │ ├── object-assign@4.1.0
      │   │ ├── signal-exit@3.0.0
      │   │ ├─┬ string-width@1.0.2
      │   │ │ ├─┬ code-point-at@1.0.0
      │   │ │ │ └── number-is-nan@1.0.0
      │   │ │ └─┬ is-fullwidth-code-point@1.0.0
      │   │ │   └── number-is-nan@1.0.0
      │   │ └── wide-align@1.1.0
      │   └── set-blocking@2.0.0
      └─┬ request@2.74.0
        └─┬ http-signature@1.1.1
          └─┬ sshpk@1.9.2
            ├── assert-plus@1.0.0
            └── getpass@0.1.6
    
    
    ---------------------------
    Node.js Version: -n
    v6.7.0
    ---------------------------
    npm Version: -n
    module.js:457
        throw err;
        ^
    
    Error: Cannot find module 'npmlog'
        at Function.Module._resolveFilename (module.js:455:15)
        at Function.Module._load (module.js:403:25)
        at Module.require (module.js:483:17)
        at require (internal/module.js:20:19)
        at /usr/lib/node_modules/npm/bin/npm-cli.js:19:13
        at Object.<anonymous> (/usr/lib/node_modules/npm/bin/npm-cli.js:75:3)
        at Module._compile (module.js:556:32)
        at Object.Module._extensions..js (module.js:565:10)
        at Module.load (module.js:473:32)
        at tryModuleLoad (module.js:432:12)
    ---------------------------
    
    node.js YUM install completed
    
     
  19. Manhhailua

    Manhhailua Member

    39
    2
    8
    Jul 7, 2016
    Hanoi
    Ratings:
    +5
    Local Time:
    3:53 PM
    1.11.1
    10.0.x
    • Informative Informative x 2
  20. eva2000

    eva2000 Administrator Staff Member

    29,054
    6,594
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,790
    Local Time:
    6:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    @KeVo think i found the problem the nodesource repo for centos 7 is missing actual nodejs package. It has nodejs-debuginfo, nodejs-devel and nodejs-docs but no nodejs

    Code (Text):
    yum list available --disablerepo=*  --disableplugin=priorities --enablerepo=nodesource,nodesource-source --disableexcludes=main
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    Available Packages
    nodejs-debuginfo.x86_64                                                                                             1:4.6.0-1nodesource.el7.centos                                                                                              nodesource
    nodejs-devel.x86_64                                                                                                 1:4.6.0-1nodesource.el7.centos                                                                                              nodesource
    nodejs-docs.noarch                                                                                                  1:4.6.0-1nodesource.el7.centos                                                                                              nodesource


    add to the epel yum repo had node.js 6.7 which got picked up instead of nodesource yum repo as nodejs 4.6 is missing

    for now you can just undo the yum install via yum history list and find the transaction id for nodejs epel instal for me it = 37

    Code (Text):
    yum history list
    Loaded plugins: fastestmirror, priorities
    ID     | Command line             | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
        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
        19 | -y install devtoolset-3- | 2016-10-05 23:17 | Install        |   13   
        18 | -y install jemalloc jema | 2016-10-05 23:16 | Install        |    2   
    history list


    Confirm via yum history info ID = 37
    Code (Text):
    yum history info 37
    Loaded plugins: fastestmirror, priorities
    Transaction ID : 37
    Begin time     : Fri Oct  7 02:37:24 2016
    Begin rpmdb    : 738:602ce1d0842bc7b68cc233f21778c8433e4d2fe2
    End time       :            02:37:26 2016 (2 seconds)
    End rpmdb      : 741:ff6800fb8b1b47bf0ad5c6fc627af30b7c74cb6b
    User           : root <root>
    Return-Code    : Success
    Command Line   : -y install nodejs --disableplugin=priorities
    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:
        Dep-Install libuv-1:1.9.1-1.el7.x86_64    @epel
        Install     nodejs-1:6.7.0-107.el7.x86_64 @epel
        Dep-Install npm-1:3.10.3-107.el7.x86_64   @epel
    history info

    then do yum history undo ID = 37 to reverse transaction and ignore file warning not found errors
    Code (Text):
    yum history undo 37
    Loaded plugins: fastestmirror, priorities
    Undoing transaction 37, from Fri Oct  7 02:37:24 2016
        Dep-Install libuv-1:1.9.1-1.el7.x86_64    @epel
        Install     nodejs-1:6.7.0-107.el7.x86_64 @epel
        Dep-Install npm-1:3.10.3-107.el7.x86_64   @epel
    Resolving Dependencies
    --> Running transaction check
    ---> Package libuv.x86_64 1:1.9.1-1.el7 will be erased
    ---> Package nodejs.x86_64 1:6.7.0-107.el7 will be erased
    ---> Package npm.x86_64 1:3.10.3-107.el7 will be erased
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ==========================================================================================================================================================================================================================================================
     Package                                                   Arch                                                      Version                                                               Repository                                                Size
    ==========================================================================================================================================================================================================================================================
    Removing:
     libuv                                                     x86_64                                                    1:1.9.1-1.el7                                                         @epel                                                    167 k
     nodejs                                                    x86_64                                                    1:6.7.0-107.el7                                                       @epel                                                     16 M
     npm                                                       x86_64                                                    1:3.10.3-107.el7                                                      @epel                                                    9.7 M
    
    Transaction Summary
    ==========================================================================================================================================================================================================================================================
    Remove  3 Packages
    
    Installed size: 26 M
    Is this ok [y/N]: y
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Erasing    : 1:npm-3.10.3-107.el7.x86_64    
      Erasing    : 1:nodejs-6.7.0-107.el7.x86_64                                                                                                                                                                                                          2/3 
      Erasing    : 1:libuv-1.9.1-1.el7.x86_64                                                                                                                                                                                                             3/3 
      Verifying  : 1:nodejs-6.7.0-107.el7.x86_64                                                                                                                                                                                                          1/3 
      Verifying  : 1:libuv-1.9.1-1.el7.x86_64                                                                                                                                                                                                             2/3 
      Verifying  : 1:npm-3.10.3-107.el7.x86_64                                                                                                                                                                                                            3/3 
    
    Removed:
      libuv.x86_64 1:1.9.1-1.el7                                                       nodejs.x86_64 1:6.7.0-107.el7                                                       npm.x86_64 1:3.10.3-107.el7                                                      
    
    Complete!
    
     
    • Informative Informative x 1