question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove NPM notice log from runs

See original GitHub issue

Describe the bug At the end of each run, npm spams with

2021-10-05T15:14:47.459Z npm notice New minor version of npm available! 7.21.0 -> 7.24.2
2021-10-05T15:14:47.461Z npm notice Run npm install -g npm@7.24.2 to update!
2021-10-05T15:14:47.461Z npm notice
2021-10-05T15:14:47.458Z npm notice
2021-10-05T15:14:47.460Z npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.24.2

To Reproduce Run any actor with newest version

Expected behavior No extra log

System information: {“apifyVersion”:“2.0.7”,“apifyClientVersion”:“1.4.2”,“osType”:“Linux”,“nodeVersion”:“v16.8.0”}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
metalwarrior665commented, Oct 14, 2021

Basically, the clean log is critical for non tech people because they don’t understand what those messages mean.

0reactions
metalwarrior665commented, Nov 15, 2021

Great, thanks. Lets see if (something similar) will popup soon again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to silence the detailed output logs of `npm install ...
Use --silent flag. Set logging level: npm config set loglevel warn . This will print warnings and errors.
Read more >
Logging - npm Docs
Log files will be removed from the logs-dir when the number of log files exceeds logs-max , with the oldest logs being deleted...
Read more >
[BUG] Updating npm as instructed by npm fails #2031 - GitHub
Current Behavior: npm fails to update in the v15.0.1 Docker container when trying the command npm prints out for updating. $ docker run...
Read more >
Solved: CLD200 - Manual Deployment keeps erroring out
Answers (10) · remove package-lock.json file from your project · run command npm install in the terminal within the root directory of your...
Read more >
Fixing security vulnerabilities in npm dependencies in less ...
2) Github security policy can also notify you — something like the ... Run npm update — https://docs.npmjs.com/cli-commands/update.html; Delete your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found