B
B
BABLGAM2222021-11-15 16:20:59
npm
BABLGAM222, 2021-11-15 16:20:59

How to change the path to package.json?

I have a site on react, and I want that there was a backend, but for this you need 2 server and client folders in the root folder. When do I make a client folder and move the project to the client folder? and I have an error when npm start, even though I wrote npm init. how to do it right so that there are no mistakes

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergio, 2021-11-15
@BABLGAM222

Need to run "npm start" from "client" folder

cd client
npm start

having previously transferred all the client code, package.json and package-lock.json/yarn.lock to the client folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question