node --trace-deprecation server.js

Category: Node.js & npm/yarn

node --trace-deprecation server.js

Show stack traces for deprecation warnings

Prints the call stack behind each deprecation warning, showing exactly which module and line uses the outdated API. Essential for finding third-party packages that break on the next Node major. Pair with --throw-deprecation to fail fast instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.