# FRESH START !
unset NODE_ENV
sudo apt-get remove nodejs
sudo apt update
sudo apt autoremove
sudo apt upgrade
# problem with npm and node install
sudo apt-get install npm
apt-cache policy npm
#sudo apt-get install -y nodejs
apt-cache policy nodejs
sudo apt-get update
sudo apt-get clean
sudo apt-get autoremove
sudo apt --fix-broken install
sudo apt-get update && sudo apt-get upgrade
sudo dpkg --configure -a
sudo rm -r /etc/apt/sources.list.d/nodesource.list*
sudo apt-get update
sudo apt-get install -f
sudo apt-get install npm
node -v
npm -v
Created
January 18, 2022 16:56
-
-
Save DrI-T/f4a3462acd37cb5007ea6f6a89c2d64e to your computer and use it in GitHub Desktop.
npm install conflict (SOLVED)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment