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
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.'
Environment:
OS: Windows 10 64bits and Ubuntu latest
Node: 14.15.1 and 15.5.1
npm: 6.4.8 and 7.4.0
The text was updated successfully, but these errors were encountered:
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
Current Behavior:
Running any script by npm shows a log of the script execution even if it is not an error. For example:
npm run my-script --loglevel error
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:
package.json
and change the start script to"node -e console.log(\"Hello\")"
npm start
It show the lognpm start --loglevel error
It show the log messagenpm start --loglevel silent
No log message and the script output appears.'Environment:
The text was updated successfully, but these errors were encountered: