Last active
May 30, 2023 15:47
-
-
Save vpnwall-services/2ce73516594340fb7f44a9898271a2dc to your computer and use it in GitHub Desktop.
[NodeJS & Composer & Yarn & Npm installer ] NodeJS & Composer & Yarn & Npm Installer #bash #nodejs #node #yarn #npm #composer #installer #dev
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/bash | |
#nodejs install | |
sudo apt-get install curl software-properties-common -y | |
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash - | |
sudo apt-get install nodejs | |
node -v | |
# * https://deb.nodesource.com/setup_14.x — Node.js 14 LTS "Fermium" (recommended) | |
# * https://deb.nodesource.com/setup_16.x — Node.js 16 "Gallium" | |
# * https://deb.nodesource.com/setup_18.x — Node.js 18 "Eighteen" (current) | |
#composer install | |
curl -sS https://getcomposer.org/installer -o composer-setup.php | |
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer | |
#yarn install | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update | |
sudo apt install yarn | |
sudo apt install --no-install-recommends yarn | |
yarn --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment