Skip to main content

Try writing it as a batch file and then calling the batch file use the DOSKEY command

REM do_npm.bat

npm start

npm run serve

REM do_npm.bat npm start npm run serve 

Then, dorun the DOSKEY command

DOSKEY npm=do_npm.bat

DOSKEY npm=do_npm.bat 

See if that works for you

Try writing it as a batch file and then calling the batch file use the DOSKEY command

REM do_npm.bat

npm start

npm run serve

Then, do the DOSKEY

DOSKEY npm=do_npm.bat

See if that works for you

Try writing it as a batch file and then calling the batch file use the DOSKEY command

REM do_npm.bat npm start npm run serve 

Then, run the DOSKEY command

DOSKEY npm=do_npm.bat 

See if that works for you

Source Link

Try writing it as a batch file and then calling the batch file use the DOSKEY command

REM do_npm.bat

npm start

npm run serve

Then, do the DOSKEY

DOSKEY npm=do_npm.bat

See if that works for you