Site icon NgDeveloper

Windows Command Prompt Commands

How to delete / remove the folder from command prompt ?

rmdir /s /q node_modules

node_modules -> is the folder which we are trying to delete / remove through windows command prompt.

How to run multiple commands in single line ?

Below commands separated by && are run if the first one runs successfully.

npm run build && npm run build:ssr && npm run serve:ssr

How to run multiple commands in single line even it throws the errors ?

npm run build & npm run build:ssr & npm run serve:ssr

& Vs &&

& -> Next command runs even the first comman throws the exception

&& -> Run next command if and only if the first command runs successfully without any exception.

Exit mobile version