mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
process.getuid doesn't always exist (fixes #41)
This commit is contained in:
parent
9a915511b3
commit
616ec7626a
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
if (process.getuid() === 0) {
|
||||
if (process.getuid && process.getuid() === 0) {
|
||||
global.console.error("Sinopia doesn't need superuser privileges. Don't run it under root.")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue