I have a file npm_version.cmd that does not pause and instead closes the window:
npm -v
@pause
I have a similar file nodejs_version.cmd that does pause and keeps the window open:
node -v
@pause
It seems npm is changing the window to npm and then back to cmd or something.
Any idea how to force this to pause?
bceause npm itself is a bat (or cmd) file.
try with :
call npm -v
you are hitting this case
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With