Debug Node.js through npx
1 min read
Before npm 7 (Node < 14):
npx --node-args=--inspect something
npm 7 and after:
npx --node-options='--inspect' something
Then open chrome://inspect in Chrome to attach the debugger.
Before npm 7 (Node < 14):
npx --node-args=--inspect something
npm 7 and after:
npx --node-options='--inspect' something
Then open chrome://inspect in Chrome to attach the debugger.