Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
112 views
in Technique[技术] by (71.8m points)

node.js - Disable npm crash report

I have a node app which sometimes while developing crashed. This crash produces something like this:

npm ERR! A complete log of this run can be found in:

it also saves a file called report.nnn.json this report file contains all my env settings & environment private keys. I've already add it on .gitignore but I really would like to have it generated.

Is is possible to avoid having this file created each time containing all my env variables as plain text?

I run my app with nodemon like this:

nodemon --watch api -r dotenv/config ./api/app.js
question from:https://stackoverflow.com/questions/65860090/disable-npm-crash-report

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...