Last active
September 9, 2023 10:24
-
-
Save Sarverott/d26b972193893130a2e26ac4b25d7ba8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt purge npm --auto-remove | |
sudo apt purge nodejs --auto-remove | |
sudo rm -f $( whereis node | sed -n -e 's/^.*node: //p' ) | |
sudo apt install npm nodejs | |
sudo npm install -g n | |
echo "" | |
whereis n | |
n --version | |
echo "" | |
whereis node | |
node -v | |
echo "" | |
whereis npm | |
npm -v | |
echo "" | |
echo "\npress enter..." | |
read x | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment