1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

fix: warning text is hard to read when running under root

This commit is contained in:
Liming Jin 2019-05-21 11:53:00 +08:00
parent 81ee0fa3f2
commit 3ac038fd8b
No known key found for this signature in database
GPG Key ID: E5DC6B415BEAB6A9

@ -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';