-1

After finished specified command npm run dev, I can't again write new command in node console.

enter image description here

How can I continue to write from a new line?

Thanks, everybody for the help!

Makhnov
  • 71
  • 1
  • 8

3 Answers3

0

npm run dev in most cases is intended to keep running, detect changes, re-transpile files and (hot) reload the application. That's intended behavior, so don't panic.

You should leave that terminal untouched and simply open a second one if you want to do anything else.

naeramarth7
  • 6,030
  • 1
  • 22
  • 26
  • I am doing that, open again but it's uncomfortable for me. – Makhnov Oct 07 '18 at 10:22
  • You're not comfortable with using multiple terminal windows? – naeramarth7 Oct 07 '18 at 10:23
  • I need again specified a path to a folder of the project – Makhnov Oct 07 '18 at 10:28
  • That's a problem? You can set your terminal to open at the same location when opening a new one - or whatever. Depends on the terminal you're using, but that shouldn't be a problem honestly. – naeramarth7 Oct 07 '18 at 10:30
  • I found how setting the main folder of the project. https://stackoverflow.com/questions/16128785/how-do-i-change-default-directory-in-node-js-windows – Makhnov Oct 07 '18 at 11:10
  • I found the right way. CTRL+C, after need to choose stop or not the execution of processing of listening and then will get a new line. – Makhnov Oct 14 '18 at 12:04
0

You will have to open another terminal window. The reason is that webpack is now listening for changes - meaning the process in your current terminal window is still running. Opening another terminal window will allow you to run other commands while the webpack process is still running.

DSCH
  • 2,146
  • 1
  • 18
  • 29
0

I found the right way. CTRL+C, after need to choose stop or not the execution of processing of listening and then will get a new line.

Makhnov
  • 71
  • 1
  • 8
  • 1
    This way, the dev command (listening to changes and rebuilding) will be killed. I don't think, that's what you asked for. – naeramarth7 Oct 15 '18 at 06:06