diff --git a/backend/.nvmrc b/backend/.nvmrc index e4ab7d287..cb77acbfe 100644 --- a/backend/.nvmrc +++ b/backend/.nvmrc @@ -1 +1 @@ -v12.19.0 \ No newline at end of file +v19.4.0 \ No newline at end of file diff --git a/backend/README.md b/backend/README.md index 0af58af48..604b0f22b 100644 --- a/backend/README.md +++ b/backend/README.md @@ -19,12 +19,19 @@ Wait a little until your backend is up and running at [http://localhost:4000/](h ## Installation without Docker For the local installation you need a recent version of -[node](https://nodejs.org/en/) (>= `v10.12.0`). We are using -`12.19.0` and therefore we recommend to use the same version +[Node](https://nodejs.org/en/) (>= `v10.12.0`). We are using +`v19.4.0` and therefore we recommend to use the same version ([see](https://github.com/Ocelot-Social-Community/Ocelot-Social/issues/4082) some known problems with more recent node versions). You can use the -[node version manager](https://github.com/nvm-sh/nvm) to switch -between different local node versions. +[node version manager](https://github.com/nvm-sh/nvm) `nvm` to switch +between different local Node versions: + +```bash +# install Node +$ cd backend +$ nvm install v19.4.0 +$ nvm use v19.4.0 +``` Install node dependencies with [yarn](https://yarnpkg.com/en/): @@ -32,6 +39,10 @@ Install node dependencies with [yarn](https://yarnpkg.com/en/): # in main folder $ cd backend $ yarn install +# or just +$ yarn +# or just later on to use version of ".nvmrc" file +$ nvm use && yarn ``` Copy Environment Variables: diff --git a/webapp/README.md b/webapp/README.md index 955d9ba3d..0f377521d 100644 --- a/webapp/README.md +++ b/webapp/README.md @@ -4,18 +4,32 @@ ## Installation +For preparation we need Node and recommend to use [node version manager](https://github.com/nvm-sh/nvm) `nvm` to switch +between different local Node versions: + +```bash +# install Node +$ cd webapp +$ nvm install v16.19.0 +$ nvm use v16.19.0 +``` + +Install node dependencies with [yarn](https://yarnpkg.com/en/): + ```bash # install all dependencies -$ cd webapp/ +$ cd webapp $ yarn install # or just $ yarn +# or just later on to use version of ".nvmrc" file +$ nvm use && yarn ``` Copy: ```text -# in webapp/ +# in webapp cp .env.template .env ```