Basic GPIO Control in Node.js Project Fails

I successfully completed the getting started project then moved on the the Basic GPIO project. When doing the push the compile starts out but then numerous errors occur. It seems to be having some problems on the balena end as using either the ‘resin’ or ‘balena’ syntax produces the same results. This project seems out of date. Here are the end lines as the push fails. I don’t understand your system to provide further information. I can send the whole failing listing if you wish, but I’m going to see if I can get something else to work. Thanks.

[main] The command ‘/bin/sh -c DEBIAN_FRONTEND=noninteractive JOBS=MAX npm install --unsafe-perm’ returned a non-zero code: 1
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: main
[Error] Error: The command ‘/bin/sh -c DEBIAN_FRONTEND=noninteractive JOBS=MAX npm install --unsafe-perm’ returned a non-zero code: 1
[Error] Not deploying release.

remote: error: hook declined to update refs/heads/master

Hello @richbpark,

I will ask a few questions and also try to reproduce the issue on my device.

Are you using the balena-cli to push the code to the device?
Are you using balena push <project> from within the folder containing the Dockerfile in your computer?

Thank you

Thank you for the response. I’m communicating with Firat Gelbal to get the balena-cli for the Pi-Hole project working on the Mac. He has suggested using the Mac stand alone install,which I will attempt. but I’m hoping for something straight forward and the tutorial though hopefully technically correct has so many apparent diversions and prerequisites, it appears it will take hours or even days to even understand the process. I gave up on the GPIO project as it seems based on a project version from the resin.io days. But it appears to be straignt forward. I’m using a RPi3A+ or B+ system.

I did get the getting started project to work successfully so I’m confident that a project can be completed with my existing system.

Thanks again

That is great @richbpark, good luck on your future projects!! :slight_smile: