You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] When run script loglevel is ignored unless set to "silent" #2468
The only way to silence the log message is by setting --loglevel silent
The same problem appears with npm@7
The problem is that setting loglevel in .npmrc silences also valid messages from npm. I had to spent too much time to debug why npm@7 was not installing my application. Removing .npmrc revealed a version problem in my packages.
Expected Behavior:
If it is not an error, nothing should be added by npm, only the script messages should appear.
Steps To Reproduce:
Create a project
Edit package.json and change the start script to "node -e console.log(\"Hello\")"
Run npm start It show the log
Run npm start --loglevel error It show the log message
Run npm start --loglevel silent No log message and the script output appears.'
npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.
If your bug is preproducible on v7, please re-file this issue using our new issue template.
If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo
Activity
darcyclarke commentedon Jun 2, 2021
npm
v6is no longer in active development; We will continue to push security releases tov6at our team's discretion as-per our Support Policy.If your bug is preproducible on
v7, please re-file this issue using our new issue template.If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo