... | ... | @@ -58,3 +58,23 @@ sudo apt update |
|
|
sudo apt install yarn
|
|
|
yarn install --prod
|
|
|
```
|
|
|
Pour résoudre ce message d'erreur :
|
|
|
```
|
|
|
error css-loader@6.5.0: The engine "node" is incompatible with this module. Expected version ">= 12.13.0". Got "10.24.0"
|
|
|
error Found incompatible module.
|
|
|
```
|
|
|
il faut mettre à jour la version de node.js
|
|
|
|
|
|
```
|
|
|
sudo apt-get install curl software-properties-common
|
|
|
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
|
|
|
sudo apt-get install nodejs
|
|
|
node --version #pour vérifier qu'on a une version suffisante.
|
|
|
```
|
|
|
Compiler avec yarn le js + css.
|
|
|
```
|
|
|
# supprimer le fichier "yarn.lock", si présent d'abord, sinon ça ne recompile pas.
|
|
|
|
|
|
yarn install --prod
|
|
|
yarn buildall
|
|
|
``` |
|
|
\ No newline at end of file |