Last active
October 5, 2021 02:02
-
-
Save danhodge/86c9a23f4a366b7c3734c45c65cf43ad to your computer and use it in GitHub Desktop.
node.js notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using the debugger | |
// 1. start with node inspect <script> | |
// 2. add debugger statement(s) in code | |
// 3. when execution stops on a debugger statement, use the repl command to get into a repl | |
// 4. use c <ENTER> to continue execution | |
// using the debugger + Jest | |
// 1. start with: node inspect $(npm bin)/jest <test.ts> --runInBand | |
// 2. same as steps 2-4 above | |
// Upgrade to a Specific Node Package Version | |
% npm install package@version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment