0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05: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

View file

@ -16,7 +16,7 @@ import { parseConfigFile } from './utils';
require('pkginfo')(module); require('pkginfo')(module);
if (process.getuid && process.getuid() === 0) { 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'; const MIN_NODE_VERSION = '6.9.0';