How to override the package installation for nodejs

Download Nodejs with the following command on AWS Linux

curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash –

sudo apt-get install -y nodejs

Force an overwrite for the Node package:

sudo dpkg -i –force-overwrite /var/cache/apt/archives/nodejs_16.9.0-deb-1nodesource1_amd64.deb

Fix the broken install:

sudo apt -f install

Update the system:

sudo apt update

sudo apt dist-upgrade

5/5 - (1 vote)

royal52
royal52

I’m a DevSecOps Software engineer by profession and a SEO hobbyist. I’m passionate about everything Software, including game development.

We will be happy to hear your thoughts

Leave a Reply

HellGeeks
Logo