Mestima

install php, composer, nodejs, sage && build

Mar 9th, 2022 (edited)
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | None | 0 0
  1. sudo apt update
  2. sudo apt install curl php-cli php-mbstring php-xmlwriter git unzip
  3.  
  4. curl -sS https://getcomposer.org/installer -o composer-setup.php
  5. HASH=`curl -sS https://composer.github.io/installer.sig`
  6.  
  7. php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
  8.  
  9. sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
  10.  
  11. curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh -o install_nvm.sh
  12. bash install_nvm.sh
  13. export NVM_DIR="$HOME/.nvm"
  14. nvm install --lts
  15.  
  16. composer create-project roots/sage test dev-main
  17. cd test
  18.  
  19. yarn install
  20. yarn build
Add Comment
Please, Sign In to add comment