...
Avertissement |
---|
Les commandes suivantes ont été lancées sur une distribution Debian 11.4 |
Sommaire |
---|
Environnement
Creation de l'utilisateur Pod
...
Bloc de code |
---|
(django_pod) pod@pod:~/django_projects/podv3$ curl -sL https://deb.nodesource.com/setup_18.x | sudo bash -
(django_pod) pod@pod:~/django_projects/podv3$ sudo apt install nodejs
(django_pod) pod@pod:~/django_projects/podv3$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
(django_pod) pod@pod:~/django_projects/podv3$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
(django_pod) pod@pod:~/django_projects/podv3$ sudo apt update
(django_pod) pod@pod:~/django_projects/podv3$ sudo apt install yarn |
Info | ||
---|---|---|
| ||
Alternativement, si vous êtes sur CentOS 8, installez les dépendances nodejs+npm et yarn ainsi : root@pod:~/$ yum install nodejs root@pod:~/$ npm install yarn -g |
Se placer dans le répertoire où est installé le package.json
...