Install node-red-node-sqlite on STM32MP157F-DK2
Hi all,
I am working with a STM32MP157F-DK2 board, and I am trying to implement a Node-Red web application. I use the Openstlinux Developer package on the board and thanks to the package repository given by ST, I was able to install the NodeJS LTS version and npm. Node-Red works well, I can see all my flows in the web browser. In my application, I would like to use the node-red-node-sqlite node to access a database hosted in the STM32MP157F-DK2.
Here is my problem: During the installation process, node-pre-gyp is trying to reach an URL where are stored pre-built binaries. However, this URL returns a "Forbidden access" (see image attached), and so node-pre-gyp calls the compiler of the board to build the necessary files. Thus, I cannot install the SQLite node because it requires a compiler during the installation process, compiler that does not exist on the STM32 board.
According to the internet, this error from node-pre-gyp seems to be quite common and I did not find a solution that works, except to build files on source.
So, I would like to know if it is possible to install this node. Has anyone ever had to deal with this node-pre-gyp error on an embedded Linux board?
And if the solution is to build necessary files on source, how is it possible to accomplish that through cross-compilation with the Developer package?
Thank you in advance for your help!
Lewis
