npx seems to swallow Node.js stack traces

cli

(Shahar Or) #1

What I Wanted to Do

Have a stack trace printed to me when an exception occurs.

What Happened Instead

It wasn’t printed. Got only a single line error.

Reproduction Steps

I dunno. Launch something with npx that crashes. See no stack trace. I didn’t make a reproduction. And then for comparison, run it without npx (directly with node).

Details

Platform Info

$ npm --versions
6.2.0
<!-- paste output here -->
$ node -p process.platform
linux
<!-- paste output here -->

(system) #2

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.