[solved] yum Transaction check error with node

Issues related to applications and software problems
Post Reply
mcheoti
Posts: 36
Joined: 2016/02/13 10:07:42
Location: Austria
Contact:

[solved] yum Transaction check error with node

Post by mcheoti » 2017/02/17 13:41:54

HI everybody !

Today i tried an update with yum. It looks fine but in the end i got some errors and the update process is not working.

Code: Select all

Transaction check error:
  file /usr/lib/node_modules/npm/node_modules/node-gyp from install of npm-1:3.10.10-1.6.9.4.2.el7.x86_64 conflicts with file from package nodejs-1:4.7.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/doc from install of npm-1:3.10.10-1.6.9.4.2.el7.x86_64 conflicts with file from package nodejs-1:4.7.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/html from install of npm-1:3.10.10-1.6.9.4.2.el7.x86_64 conflicts with file from package nodejs-1:4.7.2-1nodesource.el7.centos.x86_64
  file /usr/lib/node_modules/npm/man from install of npm-1:3.10.10-1.6.9.4.2.el7.x86_64 conflicts with file from package nodejs-1:4.7.2-1nodesource.el7.centos.x86_64
I checked the forum and found a threat which explains a way it could work in CentOs 6
viewtopic.php?t=50923
but unfortunately i am not sure what i have to write in the shell

if i enter, the following i got an error

Code: Select all

yum shell
remove node_modules
No Match for argument: node_modules
Any ideas?
All the best and hope you can help, cheers
Last edited by mcheoti on 2017/02/17 20:18:28, edited 1 time in total.

mcheoti
Posts: 36
Joined: 2016/02/13 10:07:42
Location: Austria
Contact:

Re: yum Transaction check error with node

Post by mcheoti » 2017/02/17 20:17:58

Hi,

i think i found the problem. There was another repo which was pointing there.
My solution is now to add the entry in my conf file vim /etc/yum.conf

Code: Select all

exclude=nodejs*
then update, and bingo it works.
PS: btw here is a link which explains my dooing. https://www.cyberciti.biz/faq/redhat-ce ... -packages/
cheers
Ch

Post Reply

Return to “CentOS 7 - Software Support”