mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -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
|
#!/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.")
|
global.console.error("Sinopia doesn't need superuser privileges. Don't run it under root.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue