Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/npm/cli
/ update-notifier.js
File
update-notifier.js
lib/cli/update-notifier.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
// print a banner telling the user to upgrade npm to latest but not in CI, and not if we're doing that already.
2
3
const
ciInfo = require(
'ci-info'
)
4
const
gt = require(
'semver/functions/gt'
)
Callers
nothing calls this directly
Calls
2
updateNotifier
Function · 0.85
get
Method · 0.45
Tested by
no test coverage detected