-
Notifications
You must be signed in to change notification settings - Fork 63
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
Cannot find '../build/Release/addon' #40
Comments
So I've figured out that installing and attempting to run my script as root is the problem. Not entirely sure why it's causing a problem but if I |
That's...strange. I would guess it has something to do with docker shenanigans, but honestly that's just a guess. I don't really know. tbqh, I only test on Raspbian Jesse directly, so I wouldn't be too surprised if there are issues with other configurations (even if they're just derivations). |
So it doesn't appear to be a docker issue. When I install as root it's a no go, but if I install as the |
kk good to know. Sorry I don't have any ideas/leads for you to work off of. |
I am having the same issue here. It would be great to add a trouble shooting hint as part of the README. Besides this I think it would be great, if a solution could be found for the issue. |
@nebrius Kind of ... if I install with an unprivileged user it works as ecpected. However, in my case raspi-io is used as part of a home-automation server which provides an update servive for plugins (nodejs packages). As the server runs as root (some packages like wiringPI require root privileges on wheezy at least) the package installation is performed as root. I have also tried to add Regarding this issue ticket my suggestion is to add the note in the README as it seems to be pitfall for a few users. |
Feel free to reject if you wish to reword
@mwittig can you submit that as a PR? EDIT: to clarify, can you submit mwittig@8f611d0 as a PR? |
Sorry, I missed this. Done now. |
It seems that this require statement fails when being referenced from outside the module directory. I've added some extra pathing safety here to ensure that the require statement points to the intended folder. Addresses nebrius/raspi-io#40
I have a few moving parts here so bear with me... I get this error when trying to run the basic example:
I'm running this using raspi-io v5.0.0 with node v4.1.2 on a Pi Zero, inside a docker container. The OS is 4.1.12-hypriotos+, which is basically a custom Raspbian Jessie build.
The funny thing is, I managed to install all the dependencies successfully. The only thing that had a soft failure to compile natively is execSync, but the whole process was fine. The error is below.
If anyone has any ideas, I'd greatly appreciate some direction.
The text was updated successfully, but these errors were encountered: