diff options
Diffstat (limited to 'bin/npm-cli.js')
-rwxr-xr-x | bin/npm-cli.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/npm-cli.js b/bin/npm-cli.js index f8fd106d2..d7c14bc4b 100755 --- a/bin/npm-cli.js +++ b/bin/npm-cli.js @@ -102,7 +102,7 @@ } const changelog = `https://github.com/npm/npm/releases/tag/v${latest}` notifier.notify({ - message: `New ${type} version of npm available! ${ + message: `New ${type} version of ${pkg.name} available! ${ useColor ? color.red(old) : old } ${useUnicode ? '→' : '->'} ${ useColor ? color.green(latest) : latest @@ -110,10 +110,12 @@ `${ useColor ? color.yellow('Changelog:') : 'Changelog:' } ${ - useColor ? color.cyan(changelog + ':') : changelog + ':' + useColor ? color.cyan(changelog) : changelog }\n` + `Run ${ - useColor ? color.green('npm install -g npm') : 'npm i -g npm' + useColor + ? color.green(`npm install -g ${pkg.name}`) + : `npm i -g ${pkg.name}` } to update!` }) } |