diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..bb52a169c --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18.18.2 diff --git a/README.md b/README.md index 7d1fcbd26..65a5e51ea 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,21 @@ See [Vite Configuration Reference](https://vitejs.dev/config/). ## Project Setup ```sh -npm install -# installs husky pre-commit hook +# If you use nvm, install the node version specified in .nvmrc +head .nvmrc | nvm install +nvm use + +# Clone the repository +git clone git@github.com:ecolabdata/ecospheres-front.git +cd ecospheres-front + +# Clean the cache +npm cache --force clean + +# Do a clean install +npm clean-install --force + +# Install Husky pre-commit hooks npm run prepare ```