Skip to content

Instantly share code, notes, and snippets.

@dapize
Last active October 7, 2023 22:57
Show Gist options
  • Save dapize/9d770cf801e1b00fa96e476d6e7c76eb to your computer and use it in GitHub Desktop.
Save dapize/9d770cf801e1b00fa96e476d6e7c76eb to your computer and use it in GitHub Desktop.
For install Node JS 14 in Deepin (distro linux)
#!/bin/sh
VERSION=node_14.x
DISTRO="$(dpkg --status tzdata|grep Provides|cut -f2 -d'-')"
echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
sudo apt-get -y update
sudo apt-get -y install nodejs
@alimttth
Copy link

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment