7 ms·
> npm scripts make a http call to the npm registry each time they run, which means they are a terrible way to execute a health check. Is this true? I couldn’t
by thorum 1y ago
> npm scripts make a http call to the npm registry each time they run, which means they are a terrible way to execute a health check.
Is this true? I couldn’t find another source discussing it. That would be insane behavior for a package manager.
- deleted 1y ago[deleted]
- dgoldstein0 1y agoIt might be referring to the check if whether npm is up to date so it can prompt you to update if it isn't?
- skacekamen 1y agoprobably an update check? It definitely sometimes shows an update banner
- jrasm91 1y agohttps://docs.npmjs.com/cli/v6/using-npm/config#update-notifier https://docs.npmjs.com/cli/v6/using-npm/config#update-notifi... https://github.com/npm/cli/blob/5d82d0b4a4bd1424031fb68b4df740c1bbe5b172/lib/cli/update-notifier.js https://github.com/npm/cli/blob/5d82d0b4a4bd1424031fb68b4df7...