Skip to content

Instantly share code, notes, and snippets.

@DrI-T
Created January 18, 2022 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrI-T/f4a3462acd37cb5007ea6f6a89c2d64e to your computer and use it in GitHub Desktop.
Save DrI-T/f4a3462acd37cb5007ea6f6a89c2d64e to your computer and use it in GitHub Desktop.
npm install conflict (SOLVED)
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment