To stop a node process you call this:
process.exit(99); // optional exit code '99'
However when I do so I get this:
npm ERR! code ELIFECYCLE
npm ERR! QrGenerator@1.0.0 start: `node index.js`
npm ERR! Exit status 99
npm ERR!
npm ERR! Failed at the QrGenerator@1.0.0 start script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the QrGenerator package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs QrGenerator
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls QrGenerator
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/tiwaz89/Desktop/QrGenerator/npm-debug.log
Is there a way to prevent node printing all that out?
via Tiwaz89
No comments:
Post a Comment