diff --git a/frontend/.npmrc b/frontend/.npmrc new file mode 100644 index 00000000..d81e08a3 --- /dev/null +++ b/frontend/.npmrc @@ -0,0 +1,17 @@ +# https://www.stefanjudis.com/today-i-learned/prevent-npm-install-for-not-supported-node-js-versions/ + +# ### node version 20 +# install [nvm](https://github.com/nvm-sh/nvm) +# +# \> nvm install 20 \ +# \> nvm use 20 +# +# reload terminal window +# +# \> node -v +# +# ### npm version 10.2.4 +# \> npm install -g npm@10.2.4 \ +# \> npm -v + +engine-strict=true \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 4397c832..92f894d5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -3,6 +3,9 @@ "private": true, "version": "0.0.0", "type": "module", + "engines": { + "node": "^20.0.0" + }, "scripts": { "dev": "vite", "build": "tsc && vite build",