NodeJS build for ARM error

Hello everyone, this is my first very first post so please go easy on me. I had a question regarding cross-compiling a node build for ARM. Using the native nodejs plugin gives me an error “NoImplementedError: The plugin used by ‘node-part-name’ does not support cross-compiling to a different target architecture.”

  1. Is there a current fix for this? or will a custom plugin (using nodejs arm binary) fix this?
    Not 100% sure on how to approach this. Any tips will be greatly appreciated!

Hi! Welcome!

If your application is open source, perhaps consider using snapcraft remote-build --build-on armhf,arm64. If your application is proprietary then you may be better off building directly on a Raspberry Pi. I don’t think we plan to support cross building natively in snapcraft.

1 Like