Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1.  
  2. ## Installing the NodeSource Node.js v4.x LTS Argon repo...
  3.  
  4.  
  5. ## Inspecting system...
  6.  
  7. + rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release
  8. + uname -m
  9.  
  10. ## Confirming "el7-x86_64" is supported...
  11.  
  12. + curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'
  13.  
  14. ## Downloading release setup RPM...
  15.  
  16. + mktemp
  17. + curl -sL -o '/tmp/tmp.koQFlle5c8' 'https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'
  18.  
  19. ## Installing release setup RPM...
  20.  
  21. + rpm -i --nosignature --force '/tmp/tmp.koQFlle5c8'
  22.  
  23. ## Cleaning up...
  24.  
  25. + rm -f '/tmp/tmp.koQFlle5c8'
  26.  
  27. ## Checking for existing installations...
  28.  
  29. + rpm -qa 'node|npm' | grep -v nodesource
  30. XNode.js v4.x LTS Argon == XNode.js v5.x
  31.  
  32. ## Run `yum install -y nodejs` (as root) to install Node.js v4.x LTS Argon and npm.
  33. You may also need development tools to build native addons:
  34. `yum install -y gcc-c++ make`
  35.  
  36. Loaded plugins: fastestmirror
  37. Loading mirror speeds from cached hostfile
  38. * base: ca.mirror.babylon.network
  39. * extras: ca.mirror.babylon.network
  40. * rpmforge: repoforge.mirror.constant.com
  41. * updates: ca.mirror.babylon.network
  42. Resolving Dependencies
  43. --> Running transaction check
  44. ---> Package nodejs.x86_64 2:6.10.2-2nodesource.el7.centos will be installed
  45. --> Finished Dependency Resolution
  46.  
  47. Dependencies Resolved
  48.  
  49. ================================================================================
  50. Package Arch Version Repository Size
  51. ================================================================================
  52. Installing:
  53. nodejs x86_64 2:6.10.2-2nodesource.el7.centos nodesource 9.4 M
  54.  
  55. Transaction Summary
  56. ================================================================================
  57. Install 1 Package
  58.  
  59. Total download size: 9.4 M
  60. Installed size: 33 M
  61. Downloading packages:
  62. 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
  63. Trying other mirror.
  64. To address this issue please refer to the below knowledge base article
  65.  
  66. https://access.redhat.com/articles/1320623
  67.  
  68. If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/
  69.  
  70.  
  71.  
  72. Error downloading packages:
  73. 2:nodejs-6.10.2-2nodesource.el7.centos.x86_64: [Errno 256] No more mirrors to try.
  74.  
  75. ./nodejs.sh: line 159: npm: command not found
  76.  
  77. ---------------------------
  78. Node.js Version: -n
  79. ./nodejs.sh: line 164: node: command not found
  80. ---------------------------
  81. npm Version: -n
  82. ./nodejs.sh: line 167: npm: command not found
  83. ---------------------------
  84. 
  85. node.js YUM install completed
  86. 
  87. Total Node.js Install Time: 3.068913290 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement