<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cannot install JS modules in IMX Honister image in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-install-JS-modules-in-IMX-Honister-image/m-p/1449334#M189727</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We acquired a &lt;A href="https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-for-the-i-mx-8m-nano-applications-processor:8MNANOD4-EVK" target="_self"&gt;i.MX 8M Nano EVK Board&lt;/A&gt;&amp;nbsp;some weeks ago, and we would like to run some node.js applications on it for evaluation (mainly Node-RED). I have followed the procedure described in &lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf" target="_self"&gt;i.MX Linux User's Guide&lt;/A&gt; to build two images with Yocto (Honister, imx-5.15.5-1.0.0.xml, imx-image-core), one to be downloaded to SD card using uuu, and the other one for quemuarm. This works very well, and I am able to add recipes/layers to my image. In particular, I have added node.js-16.11.1 which brings npm.&lt;/P&gt;&lt;P&gt;My problem is that I never succeeded to install any JS package by npm. I tried Node-RED, cute-files (example of &lt;A href="https://docs.yoctoproject.org/current/dev-manual/common-tasks.html?highlight=npm#creating-node-package-manager-npm-packages" target="_self"&gt;Yocto documentation&lt;/A&gt;), and others. I created the recipes by devtool (both methods: registry and github) but dependencies are not managed correctly, and 'devtool build' always fails. I imported several versions of recipes from &lt;A href="https://github.com/intel-iot-devkit/meta-iot-cloud" target="_self"&gt;meta-iot-cloud&lt;/A&gt;, but bitbake always ends-up with ENOTCACHED error. Of course, I searched solutions on the internet, but I couldn't find any. &lt;A href="https://github.com/intel-iot-devkit/meta-iot-cloud/commit/08d0c505097b889836315a4fe9b41acbb264be3f" target="_self"&gt;One commit message&lt;/A&gt; seems to say that something is wrong with new versions of npm, so I tried to downgrade node.js to v14, but then, this created too many compatibility issues. I am not giving all details of what I tried, but I'm starting to run out of idea&lt;/P&gt;&lt;P&gt;Has anybody managed to install JS modules in an IMX Honister image ?&lt;/P&gt;&lt;P&gt;Is it recommended to use an older version of Yocto ?&lt;/P&gt;&lt;P&gt;Thank you for any tip / help&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 16:18:48 GMT</pubDate>
    <dc:creator>Tuitor</dc:creator>
    <dc:date>2022-04-26T16:18:48Z</dc:date>
    <item>
      <title>Cannot install JS modules in IMX Honister image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-install-JS-modules-in-IMX-Honister-image/m-p/1449334#M189727</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We acquired a &lt;A href="https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-for-the-i-mx-8m-nano-applications-processor:8MNANOD4-EVK" target="_self"&gt;i.MX 8M Nano EVK Board&lt;/A&gt;&amp;nbsp;some weeks ago, and we would like to run some node.js applications on it for evaluation (mainly Node-RED). I have followed the procedure described in &lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf" target="_self"&gt;i.MX Linux User's Guide&lt;/A&gt; to build two images with Yocto (Honister, imx-5.15.5-1.0.0.xml, imx-image-core), one to be downloaded to SD card using uuu, and the other one for quemuarm. This works very well, and I am able to add recipes/layers to my image. In particular, I have added node.js-16.11.1 which brings npm.&lt;/P&gt;&lt;P&gt;My problem is that I never succeeded to install any JS package by npm. I tried Node-RED, cute-files (example of &lt;A href="https://docs.yoctoproject.org/current/dev-manual/common-tasks.html?highlight=npm#creating-node-package-manager-npm-packages" target="_self"&gt;Yocto documentation&lt;/A&gt;), and others. I created the recipes by devtool (both methods: registry and github) but dependencies are not managed correctly, and 'devtool build' always fails. I imported several versions of recipes from &lt;A href="https://github.com/intel-iot-devkit/meta-iot-cloud" target="_self"&gt;meta-iot-cloud&lt;/A&gt;, but bitbake always ends-up with ENOTCACHED error. Of course, I searched solutions on the internet, but I couldn't find any. &lt;A href="https://github.com/intel-iot-devkit/meta-iot-cloud/commit/08d0c505097b889836315a4fe9b41acbb264be3f" target="_self"&gt;One commit message&lt;/A&gt; seems to say that something is wrong with new versions of npm, so I tried to downgrade node.js to v14, but then, this created too many compatibility issues. I am not giving all details of what I tried, but I'm starting to run out of idea&lt;/P&gt;&lt;P&gt;Has anybody managed to install JS modules in an IMX Honister image ?&lt;/P&gt;&lt;P&gt;Is it recommended to use an older version of Yocto ?&lt;/P&gt;&lt;P&gt;Thank you for any tip / help&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 16:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-install-JS-modules-in-IMX-Honister-image/m-p/1449334#M189727</guid>
      <dc:creator>Tuitor</dc:creator>
      <dc:date>2022-04-26T16:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install JS modules in IMX Honister image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-install-JS-modules-in-IMX-Honister-image/m-p/1450360#M189794</link>
      <description>&lt;P&gt;Did you add nodejs like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IMAGE_INSTALL:append = "nodejs" 
IMAGE_INSTALL:append = "nodejs-npm" &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;honister supports nodejs v14 and you just need append it.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools/nodejs?h=honister" target="_blank" rel="noopener"&gt;http://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools/nodejs?h=honister&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 03:20:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-install-JS-modules-in-IMX-Honister-image/m-p/1450360#M189794</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2022-04-28T03:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install JS modules in IMX Honister image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-install-JS-modules-in-IMX-Honister-image/m-p/1450505#M189800</link>
      <description>&lt;P&gt;Yes, I first added node.js like you suggest:&lt;/P&gt;&lt;PRE&gt;IMAGE_INSTALL:append = "nodejs" 
IMAGE_INSTALL:append = "nodejs-npm" &lt;/PRE&gt;&lt;P&gt;... but actually, node.js layer alone is enough because npm comes with it, so I am finally keeping this line only:&lt;/P&gt;&lt;PRE&gt;IMAGE_INSTALL:append = "nodejs" &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, Honister supports node.js v14, but imx layers upgrade node.js to v16.&lt;/P&gt;&lt;P&gt;I removed the v16 upgrade to try out node.js v14, but I faced compatibility issues with other components during the build (ex: openssl). I started to fix those compatibility issues one by one, but I gave up because it was never ending. That's when I decided to ask some help on this forum.&lt;/P&gt;&lt;P&gt;In parallel, I've built a complete new image based on Hardknott which supports node.js v12:&lt;/P&gt;&lt;PRE&gt;repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-hardknott -m imx-5.10.72-2.2.0.xml&lt;/PRE&gt;&lt;P&gt;... and &lt;STRONG&gt;Node-RED installation (import recipe from meta-iot-cloud) succeeded at my first attempt&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;My conclusion is that installation of JS modules with npm, coming with node.js v16, brought by imx images based on Honister, does not work. I don't know exactly where or when this has been broken, but I would recommend images based on Hardknott.&lt;/P&gt;&lt;P&gt;(by the way, I think I posted this question in wrong forum section, I should have posted it in Software Forums, sorry about that)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 07:48:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-install-JS-modules-in-IMX-Honister-image/m-p/1450505#M189800</guid>
      <dc:creator>Tuitor</dc:creator>
      <dc:date>2022-04-28T07:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot install JS modules in IMX Honister image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-install-JS-modules-in-IMX-Honister-image/m-p/1451039#M189840</link>
      <description>&lt;P&gt;I have the same isuue in&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Yocto Project 3.4 (Honister). with i.mx6ull.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And I found if I install commander package and it doesn't have any&amp;nbsp;&lt;SPAN&gt;dependencies&amp;nbsp;package, it would build completely.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I install other package like node-ble or&amp;nbsp;cute-files which has&amp;nbsp;dependencies&amp;nbsp;packages , the npm would issue the error "npm ERR! code ENOTCACHED".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 03:42:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-install-JS-modules-in-IMX-Honister-image/m-p/1451039#M189840</guid>
      <dc:creator>zohanlin</dc:creator>
      <dc:date>2022-04-29T03:42:08Z</dc:date>
    </item>
  </channel>
</rss>

