un script pour installer les services nécessaires pour travailler avec NodeJS.
#!/bin/bash # Installation et configuration de NodeJS, NPM & Git echo "Auteur : Tommy Gingras" echo "Date : 2017-07-08" echo "But : Installer et configurer NodeJS, NPM, Git & PM2." echo "Version : 1.0.0" GREEN='\033[0;32m' NC='\033[0m' # No Color read -p "Choisir une version (6 ou 8) : [6]" version if [ "$version" == "" ] then version=6 fi apt-get update apt-get install -q -y curl curl -sL https://deb.nodesource.com/setup_$version.x | bash - apt-get install -q -y nodejs build-essential git npm npm install -g pm2 echo -e "${GREEN}Installation et configuration terminée.${NC}"
Source: NodeJS