Help us understand the problem. What is going on with this article?

sudo yum install nodejs npm --enablerepo=epel で怒られた話

$ sudo yum install nodejs npm --enablerepo=epel

を実行したら

Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Repository nodesource is listed more than once in the configuration
Repository nodesource-source is listed more than once in the configuration
amzn2-core                                                                | 2.4 kB  00:00:00     
224 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:6.17.1-1nodesource will be installed
---> Package npm.x86_64 1:3.10.10-1.6.17.1.1.el7 will be installed
--> Processing Dependency: nodejs = 1:6.17.1-1.el7 for package: 1:npm-3.10.10-1.6.17.1.1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 1:npm-3.10.10-1.6.17.1.1.el7.x86_64 (epel)
           Requires: nodejs = 1:6.17.1-1.el7
           Available: nodejs-6.0.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 6.0.0-1nodesource.el7.centos
           Available: nodejs-6.1.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 6.1.0-1nodesource.el7.centos
           Available: nodejs-6.2.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 6.2.0-1nodesource.el7.centos
           Available: nodejs-6.2.1-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 6.2.1-1nodesource.el7.centos
           Available: nodejs-6.2.2-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 6.2.2-1nodesource.el7.centos
           Available: 1:nodejs-6.3.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 1:6.3.0-1nodesource.el7.centos
           Available: 1:nodejs-6.3.1-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 1:6.3.1-1nodesource.el7.centos
           Available: 1:nodejs-6.4.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 1:6.4.0-1nodesource.el7.centos
           Available: 1:nodejs-6.6.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 1:6.6.0-1nodesource.el7.centos
           Available: 1:nodejs-6.7.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 1:6.7.0-1nodesource.el7.centos
           Available: 1:nodejs-6.17.1-1.el7.x86_64 (epel)
               nodejs = 1:6.17.1-1.el7
           Available: 2:nodejs-6.8.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.8.0-1nodesource.el7.centos
           Available: 2:nodejs-6.8.1-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.8.1-1nodesource.el7.centos
           Available: 2:nodejs-6.9.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.9.0-1nodesource.el7.centos
           Available: 2:nodejs-6.9.1-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.9.1-1nodesource.el7.centos
           Available: 2:nodejs-6.9.2-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.9.2-1nodesource.el7.centos
           Available: 2:nodejs-6.9.3-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.9.3-1nodesource.el7.centos
           Available: 2:nodejs-6.9.4-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.9.4-1nodesource.el7.centos
           Available: 2:nodejs-6.9.5-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.9.5-1nodesource.el7.centos
           Available: 2:nodejs-6.10.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.10.0-1nodesource.el7.centos
           Available: 2:nodejs-6.10.1-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.10.1-1nodesource.el7.centos
           Available: 2:nodejs-6.10.2-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.10.2-1nodesource.el7.centos
           Available: 2:nodejs-6.10.2-2nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.10.2-2nodesource.el7.centos
           Available: 2:nodejs-6.10.3-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.10.3-1nodesource.el7.centos
           Available: 2:nodejs-6.11.0-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.11.0-1nodesource.el7.centos
           Available: 2:nodejs-6.11.1-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.11.1-1nodesource.el7.centos
           Available: 2:nodejs-6.11.2-1nodesource.el7.centos.x86_64 (nodesource)
               nodejs = 2:6.11.2-1nodesource.el7.centos
           Available: 2:nodejs-6.11.3-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.11.3-1nodesource
           Available: 2:nodejs-6.11.4-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.11.4-1nodesource
           Available: 2:nodejs-6.11.5-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.11.5-1nodesource
           Available: 2:nodejs-6.12.0-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.12.0-1nodesource
           Available: 2:nodejs-6.12.1-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.12.1-1nodesource
           Available: 2:nodejs-6.12.2-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.12.2-1nodesource
           Available: 2:nodejs-6.13.0-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.13.0-1nodesource
           Available: 2:nodejs-6.13.1-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.13.1-1nodesource
           Available: 2:nodejs-6.14.0-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.14.0-1nodesource
           Available: 2:nodejs-6.14.1-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.14.1-1nodesource
           Available: 2:nodejs-6.14.2-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.14.2-1nodesource
           Available: 2:nodejs-6.14.3-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.14.3-1nodesource
           Available: 2:nodejs-6.14.4-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.14.4-1nodesource
           Available: 2:nodejs-6.15.0-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.15.0-1nodesource
           Available: 2:nodejs-6.15.1-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.15.1-1nodesource
           Available: 2:nodejs-6.16.0-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.16.0-1nodesource
           Available: 2:nodejs-6.17.0-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.17.0-1nodesource
           Installing: 2:nodejs-6.17.1-1nodesource.x86_64 (nodesource)
               nodejs = 2:6.17.1-1nodesource
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

と怒られた。

$ sudo yum install nodejs npm --enablerepo=epel --skip-broken

で解決。

$ npm -v
#バージョンが出ればOK
KoyoIshikawa
aws ruby on rails を勉強中 現在はSESでシステム監視をしています。 学習の末転職を目指します。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした