typicode / hotel

🏩 A simple process manager for developers. Start apps from your browser and access them using local domains
MIT License
9.98k stars 424 forks source link

Every command, same error - "Should not be run as root, please retry without sudo." #220

Closed aadrian closed 7 years ago

aadrian commented 7 years ago

hotel shows on Linux (Ubuntu) the following message, independent of the command typed: Should not be run as root, please retry without sudo.

However, it's not running as root, nor is it started with sudo. Also all NPM and .hotel files belog to the normal user, not root.

The log file daemon.log contains no useful hints.

Any idea what else could I try ?

Thank you.

indrakaw commented 7 years ago

Try this which hotel or install hotel locally npm config get prefix.

aadrian commented 7 years ago

@indrakaw Thanks for your help. It seems this problem is present only in zsh+oh-my-zsh . Reverting back to classical bash makes the problem disappear. It looks like oh-my-zsh breaks just too many applications :( .

indrakaw commented 7 years ago

Okay then.

I'm using zsh + oh-my-zsh and having no problem. It seems there is a conflict on oh-my-zsh plug-ins. Try to disable it.