Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #67 from SELab-2/enforce-node-version
Browse files Browse the repository at this point in the history
enforced node version 20
  • Loading branch information
msathieu authored Mar 10, 2024
2 parents c15b151 + d454990 commit dfe51db
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions frontend/.npmrc
Original file line number Diff line number Diff line change
@@ -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 [email protected] \
# \> npm -v

engine-strict=true
3 changes: 3 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"private": true,
"version": "0.0.0",
"type": "module",
"engines": {
"node": "^20.0.0"
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand Down

0 comments on commit dfe51db

Please sign in to comment.