FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
04-01-2022 02:03 AM
I see an SDK for developing in node.js in the sdk but the examples are only on the virutal machine. When I try to install the snap on the core I get the following error. Is node.js supported on pysical core?
Solved! Go to Solution.
04-01-2022 07:45 AM
In snapcraft.yaml, you have to set confinement to strict, otherwise you won't be able to install the snap using the web-front.
04-01-2022 08:43 AM
@DiluMarku wrote:In snapcraft.yaml, you have to set confinement to strict, otherwise you won't be able to install the snap using the web-front.
Yes, that's right.
Some additional information on node.js with the SDK:
Until now you are only able to build a Nodejs snap with the SDK for the architecture of your Build environment. So you would need a arm64 environment to build a snap for the real ctrlX CORE Hardware.
But coming with the next release RM22.03 (V 1.14) Cross Build of snaps gets supported for all programming languages in the SDK. All project folders will contain build scripts to create both an amd64 snap for a ctrlX CORE virtual and an arm64 snap for a ctrlX CORE.
See screenshot:
04-01-2022 03:16 PM
Reviewing the SDK it describes installing the node.js snap to the virutal machine. This snap is set to "classic" by default. My understnding is that a classic snap cannot be installed with the strict confinement. Is there a way to install this on the core?
04-04-2022 10:13 AM
This documentation describes what needs to be done to setup your development environment to build your snaps for the ctrlX CORE. So you have to install node in your development environment but not on the ctrlX CORE.
04-04-2022 02:41 PM
Is node.js already present on the core? Are you saying if I build the demo node.js snap it will work without further installation or snaps?
04-04-2022 03:39 PM - last edited on 04-04-2022 04:03 PM by CodeShepherd
Yes, you can build a node.js snap with the SDK and install it on your ctrlX CORE and you don't need to install any additional apps or packages.
Because your snap has all dependencies which are needed for it to run inside. See here for more information on snaps.