Question

npm cmd on vsCode open outside the terminal

Posted November 23, 2020 612 views
Linux BasicsNode.jsGetting StartedGitInitial Server SetupReactVS CodeInfrastructure

hello everybody..
(i am very new with node)

when i use vsCoded npm on the terminal.. after hitting the enter key.. its not continue the process in the terminal but a new window open then output the process.. and as soon as it finish -> the window is close!

so: i cant see the error message if any..
for now i have to catch the moment with print screen just b4 its close..

Example link

how can i return to the normal state when terminal stay in the terminal window..??

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

Hi there @X0,

As far as I can see you are getting an npm error saying that you can not use capital letters in your project name.

Can you try choosing a different name without capital letters and run the command again?

Regards,
Bobby

hi Bobby..

the issue is to stop terminal from open and close in external windows - as demonstrate on the image above.
i have no issue with the react npm - it was only to demonstrate the issue above..

i need the terminal to start and finish on the same window.

thanks for trying.