I would like to run my project all at once with one command using concurrently.I have a folder called MERN_STACK_SHOPPING LIST inside it is my backend code and a folder called client with my react codes.My package.json file looks this way`{"name": "shopping_project","version": "1.0.0","description": "This is a project on a shopping list, it will be used as a learning on the mern stack","main": "server.js","scripts": {"client-install":"npm install --prefix client","start": "node server.js","server":"nodemon server.js","client":"npm start --prefix client","dev":"concurrently \"npm run server\"\"npm run client\""},"keywords": [],"author": "Den","license": "ISC","dependencies": {"body-parser": "^1.19.0","concurrently": "^5.2.0","express": "^4.17.1","mongoose": "^5.9.18"},"devDependencies": {"nodemon": "^2.0.4"}}`I would like to run `npm run dev` in order to run both the backend and front end part. I am met with the following errors`shopping_project@1.0.0 dev /home/denis/Desktop/projects/MERN_SHOPPING_LIST> concurrently "npm run server""npm run client"[0] npm ERR! missing script: servernpm[0] npm ERR![0] npm ERR! Did you mean this?[0] npm ERR! server[0][0] npm ERR! A complete log of this run can be found in:[0] npm ERR! /home/denis/.npm/_logs/2020-06-16T13_53_38_411Z-debug.log[0] npm run servernpm run client exited with code 1npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! shopping_project@1.0.0 dev: `concurrently "npm run server""npm run client"`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the shopping_project@1.0.0 dev script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:`I following a tutorial so i dont understand what the error could be. I can provide any details. I am new to programming btw
Submitted June 16, 2020 at 03:06PM by Iloveyoufridah
No comments:
Post a Comment