From 3ac038fd8b3e2c31e3757918df0282cc96e88087 Mon Sep 17 00:00:00 2001 From: Liming Jin Date: Tue, 21 May 2019 11:53:00 +0800 Subject: [PATCH] fix: warning text is hard to read when running under root --- src/lib/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/cli.js b/src/lib/cli.js index c6b62937b..5f7f67ccb 100644 --- a/src/lib/cli.js +++ b/src/lib/cli.js @@ -16,7 +16,7 @@ import { parseConfigFile } from './utils'; require('pkginfo')(module); if (process.getuid && process.getuid() === 0) { - global.console.warn(bgYellow('Verdaccio doesn\'t need superuser privileges. Don\'t run it under root.')); + global.console.warn(bgYellow().red('*** WARNING: Verdaccio doesn\'t need superuser privileges. Don\'t run it under root! ***')); } const MIN_NODE_VERSION = '6.9.0';