'npm install --timing not saving full debug log
I'm running npm install --timing, and when it completes it will output something like:
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mesher/.npm/_logs/2022-05-14T18_33_08_821Z-debug.log
Problem is, that debug log does not contain a complete log.
Looking at that file, I see that it only has a little over 15k lines, and the first line in the file starts at over line 110k:
110055 silly postinstall [email protected]
110056 info lifecycle [email protected]~postinstall: [email protected]
110057 silly postinstall [email protected]
110058 info lifecycle [email protected]~postinstall: [email protected]
...
Is there a way to get an actual complete npm install log?
Thanks
Solution 1:[1]
If you add --loglevel verbose to your command all of your logs will be printed to STDERR, as well being saved to npm-debug.log in your current directory like --timing does. However, this should provide more information around the error:
npm install --loglevel verbose
This should get you a more complete log file. You can find more about how npm handles logging in the docs.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | about14sheep |
