diff --git a/README.md b/README.md index d231eaef..83acc957 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ You can install this environment by following these steps: - clone the repo: `git clone git@github.com:mui/tech-challenge-react.git` - install the dependencies: `yarn` -- use a Node.js's version <= 16 and >= 10 +- use a Node.js's version >= 18.0.0 and < 21.0.0 - start Next.js: `yarn start` - open http://0.0.0.0:3002/components/phase1/ diff --git a/docs/package.json b/docs/package.json index 6198c2a8..4cb2c3a4 100644 --- a/docs/package.json +++ b/docs/package.json @@ -8,7 +8,7 @@ "build": "cross-env NODE_ENV=production next build --profile", "build:clean": "rimraf .next && yarn build", "build-sw": "node ./scripts/buildServiceWorker.js", - "dev": "rimraf ./node_modules/.cache/babel-loader && next dev --port 3002", + "dev": "rimraf ./node_modules/.cache/babel-loader && NODE_OPTIONS=--openssl-legacy-provider next dev --port 3002", "deploy": "git push material-ui-docs next:next", "export": "rimraf docs/export && next export --threads=3 -o export && yarn build-sw", "icons": "rimraf public/static/icons/* && node ./scripts/buildIcons.js", diff --git a/package.json b/package.json index c5458e8a..aca8b2dc 100644 --- a/package.json +++ b/package.json @@ -212,5 +212,8 @@ "docs", "docs/packages/*", "framer" - ] + ], + "engines": { + "node": ">=18.0.0" + } }