I'm stuck with npm --prefix. I'm trying to prefix my frontend folder so I can run both the backend and frontend at the same time.
I keep getting an error with the wrong pathway: \backend\frontend/package.json.
Can anyone help me with that?
{
"name": "backend",
"version": "1.0.0",
"description": "User Authentication APP - MERN stack",
"main": "server.js",
"scripts": {
"start": "node backend/server.js",
"server": "nodemon backend/server.js",
"client": "npm start --prefix frontend ",
"dev": "concurrently \"npm run server\" \"npm run client\""
}
}