Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Last active May 30, 2023 15:47
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 vpnwall-services/2ce73516594340fb7f44a9898271a2dc to your computer and use it in GitHub Desktop.
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
#!/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