this is my project root:
backend
frontend
package.json
inside the package.json I have this:
"scripts": {
"backend_dev": "npm start --prefix backend strapi-develop",
"frontend_dev": "npm start --prefix frontend develop",
"dev": "concurrently \"npm run backend_dev\" \"npm run frontend_dev\""
},
when I run npm run frontend_dev I get: error gatsby develop what I did wrong?
I don't think npm scripts explicitly set directory
using —prefix I can run the backend app
cd frontend && npm develop
I mean in the root… I want run both backend and frontend in the same tiem
Ctrl+Shift+5 works for me
I mean, is there a way to run backend + frontend using npm script?
Well you could have them in the same project :P
same project different folder
Обсуждают сегодня