I am brand new to node.js and I am trying to build my app so that I can deploy it.
Right after I do npm start
I cannot do anything. Sorry if the question is too obvious, but I have never used node.js before.
Cmd says that I can build my app which is what I want but I cannot type anything.
I have tried doing npm run build
before doing npm start
but I get an empty index.html.
These are my package.json
's scripts:
CodePudding user response:
After running npm start
your app is running continuously. So if you want to type a new command, you would have to stop it or open a new terminal window/tab and run that command there. Just make sure you are in the same path you want to be.
In order to stop a running process (e.g. npm start
) simply press ctrl c
(that is, ctrl
first, keep it pressed and then press c
) no matter if you are using mac or windows