Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating of NPM packages not possible through FHEM UI #18

Closed
asabban opened this issue Mar 18, 2019 · 1 comment
Closed

Updating of NPM packages not possible through FHEM UI #18

asabban opened this issue Mar 18, 2019 · 1 comment

Comments

@asabban
Copy link

asabban commented Mar 18, 2019

Hello,

after starting the Docker container and logging into the FHEM UI there are pending NPM updates indicated by fhemServerNpm. When calling "set update all" through the UI an error occurs:

Error code E403
Summary:
Forbidden - passwordless sudo permissions required

Detail:
sudo: sorry, you are not allowed to set the following environment variables: NODE_ENV

The required commands to update are part of /etc/sudoers.d/fhem-docker, unfortunately the user is not allowed to set/retain environment variables, calling the update to fail.

I have solved this by adding

Defaults !env_reset

to /etc/sudoers.d/fhem-docker. Afterwards updating the packages through the UI works fine.

I am not sure if this is an issue that only occurs for me but I thought I better report it.

Thank you,
Andre

@jpawlowski
Copy link
Contributor

This is not an issue at all, sudo permissions need to be set manually outside of npmjs.pm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants