From d454990aa1c6486c4d42adb61cfc739d90373f7c Mon Sep 17 00:00:00 2001 From: Ruben Vandamme Date: Sun, 10 Mar 2024 12:15:33 +0100 Subject: [PATCH] enforced node version 20 --- frontend/.npmrc | 17 +++++++++++++++++ frontend/package.json | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 frontend/.npmrc 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",