0
Fork 0
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:
Alex Kocharin 2014-01-24 06:36:03 +03:00
parent 9a915511b3
commit 616ec7626a

View file

@ -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.")
}