Monday, 15 October 2018

Help! Idiotically deleted a node js repository file, now I can't figure out how to get it back

I'm not sure if this is the right place to ask (if it is not, please direct me to the right place), but I deleted a file off of an AWS I'm working on. The /etc/yum.repos.d/nodesource-el.repo file to be exact.I was trying to upgrade the node version but nothing I tried would work and then I followed some advice on a thread somewhere. Now I don't know how to get the file back or create a new one. I can't upgrade or get node.js back no matter what I try. How can I fix this? I'm sorry for doing something so stupid.This is what happens when I try to run an install:​[user@computer ~]$ sudo yum -y install nodejsLoaded plugins: priorities, update-motd, upgrade-helperamzn-main | 2.1 kB 00:00amzn-updates | 2.5 kB 00:00Resolving Dependencies--> Running transaction check---> Package nodejs.x86_64 2:6.14.4-1nodesource will be installed--> Finished Dependency Resolution​Dependencies Resolved​Package Arch Version Repository SizeInstalling:nodejs x86_64 2:6.14.4-1nodesource nodesource 13 M​Transaction SummaryInstall 1 Package​Total download size: 13 MInstalled size: 39 MDownloading packages:nodejs-6.14.4-1nodesource.x86_ FAILEDhttps://rpm.nodesource.com/pub_8.x/el/7/x86_64/nodejs-6.14.4-1nodesource.x86_64.rpm: [Errno 14] HTTPS Error 404 - Not FoundTrying 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 open a ticket with Red Hat Support.​​​Error downloading packages:2:nodejs-6.14.4-1nodesource.x86_64: [Errno 256] No more mirrors to try.​---- end of the output. I also don't have a redhat account, nor do i have access to one. Thank you for reading this and possibly helping me out.​tl;dr: Deleted yum.repos.d/nodesource-el.repo and now i can't install node. Help please! Thanks!​

Submitted October 15, 2018 at 09:13PM by lostincomputers

No comments:

Post a Comment