diff --git a/client/.npmrc b/client/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/client/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/client/package.json b/client/package.json index f662261b..c9767c96 100644 --- a/client/package.json +++ b/client/package.json @@ -19,5 +19,9 @@ "@vitejs/plugin-react": "^2.1.0", "sass": "^1.54.9", "vite": "^3.1.0" + }, + "engines" : { + "npm" : ">=8.0.0", + "node" : ">=16.0.0" } } diff --git a/readme.md b/readme.md index c8226697..d168e766 100644 --- a/readme.md +++ b/readme.md @@ -19,8 +19,8 @@ The server folder contains a node.js server using [express](https://expressjs.co 1. Open a terminal within the `/server` folder 2. Run `npm install` to install all the depedencies -3. Run `node index` to start the server +3. Run `npm run dev` to start the server The application should connect to the default server port (3042) automatically! -_Hint_ - Use [nodemon](https://www.npmjs.com/package/nodemon) instead of `node` to automatically restart the server on any changes. \ No newline at end of file +_Hint_ - Use [nodemon](https://www.npmjs.com/package/nodemon) instead of `node` to automatically restart the server on any changes. diff --git a/server/package.json b/server/package.json index c03b40a9..0b99f6d4 100644 --- a/server/package.json +++ b/server/package.json @@ -4,6 +4,7 @@ "description": "", "main": "index.js", "scripts": { + "dev": "node index", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [],