{"id":27708603,"url":"https://github.com/imyller/meta-nodejs","last_synced_at":"2025-04-26T10:36:02.913Z","repository":{"id":13919184,"uuid":"16618479","full_name":"imyller/meta-nodejs","owner":"imyller","description":"OpenEmbedded layer for latest Node.js releases","archived":false,"fork":false,"pushed_at":"2020-06-09T23:58:08.000Z","size":314,"stargazers_count":77,"open_issues_count":24,"forks_count":97,"subscribers_count":11,"default_branch":"master","last_synced_at":"2023-08-13T08:01:11.551Z","etag":null,"topics":["javascript","js","meta-nodejs","node","nodejs","openembedded","yocto","yocto-layer"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imyller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-07T15:25:17.000Z","updated_at":"2023-04-22T14:31:38.000Z","dependencies_parsed_at":"2022-08-18T02:01:26.710Z","dependency_job_id":null,"html_url":"https://github.com/imyller/meta-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyller%2Fmeta-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyller%2Fmeta-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyller%2Fmeta-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imyller%2Fmeta-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imyller","download_url":"https://codeload.github.com/imyller/meta-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250975390,"owners_count":21516866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","js","meta-nodejs","node","nodejs","openembedded","yocto","yocto-layer"],"created_at":"2025-04-26T10:36:02.001Z","updated_at":"2025-04-26T10:36:02.908Z","avatar_url":"https://github.com/imyller.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"meta-nodejs \u003cimg src=\"https://github.com/nodejs/nodejs.org/raw/master/static/images/logos/nodejs-new-black.png\" width=\"128\" align=\"right\"\u003e\n===========\n\nOpenEmbedded layer for latest [Node.js](https://nodejs.org/ \"Node.js\") releases.\n \n:information_source: *As an official extension of this layer, installing [`meta-nodejs-contrib`](https://github.com/imyller/meta-nodejs-contrib) is highly recommended for community contributed Node.js based package recipes and Bitbake helper classes.*\n\n## Node.js releases\n\n * ![Current 7](https://img.shields.io/badge/Node.js%20Current-7.10.0-green.svg)\n * ![LTS 6](https://img.shields.io/badge/Node.js%20LTS-6.10.3-blue.svg)\n * ![Maintenance 4](https://img.shields.io/badge/Node.js%20Maintenance-4.8.3-B0C4DE.svg)\n * ![End of life 0.12](https://img.shields.io/badge/Node.js%20End%20of%20Life-0.12.18-lightgray.svg)\n * ![End of life 0.10](https://img.shields.io/badge/Node.js%20End%20of%20Life-0.10.48-lightgray.svg)\n * ![End of life 0.8](https://img.shields.io/badge/Node.js%20End%20of%20Life-0.8.28-lightgrey.svg)\n\n![LTS Schedule](https://github.com/nodejs/LTS/raw/master/schedule.png)\n\n## Dependencies\n\n`meta-nodejs` depends on following layers:\n\n * [`openembedded-core`](http://layers.openembedded.org/layerindex/branch/master/layer/openembedded-core/)\n\n### Cross-compiling for 32-bit target on 64-bit host\n\nNode.js v7+ ships with V8 v5.5+ that requires native (host) compilation of some internal build tools (`mkpeephole` and `mksnapshot`).\nThese internal tools must be built with \"bitness\" matching the cross-compilation target (eg. 32-bit ARM).\n\nIf you encounter build errors related to `mkpeephole` or `mksnapshot` you most likely need to install appropriate multilib compilers and libraries to to your host system.\n\n#### Example\n\nPrerequisites for compiling for 32-bit ARM with x86_64 Ubuntu 16.04 Xenial (or newer):\n\n```\nsudo dpkg --add-architecture i386\nsudo apt-get update\nsudo apt-get install g++-multilib libssl-dev:i386 libcrypto++-dev:i386 zlib1g-dev:i386\n```\n\n## Available Packages\n\n * `nodejs`\n * `nodejs-npm`\n * `nodejs-dtrace`\n * `nodejs-systemtap`\n * `nodejs-wafadmin` (only with Node.js `0.8`)\n\nInstallation\n============\n\nLayer installation varies depending on your OpenEmbedded distribution. These instructions are generic.\n\n1. Fetch `meta-nodejs` layer from `https://github.com/imyller/meta-nodejs.git`\n\t\n2. Add `meta-nodejs` layer to `EXTRALAYERS` in `conf/bblayers.conf`. For example:\n\n\t```bitbake\n\t\tEXTRALAYERS +=\" \\\n\t\t\t${TOPDIR}/sources/meta-nodejs \\\n\t\t\"\n\t```\n\t\n## Recommended layers\n\nAs an official extension of this layer, installing [`meta-nodejs-contrib`](https://github.com/imyller/meta-nodejs-contrib) is highly recommended for community contributed Node.js based package recipes and Bitbake helper classes.\n\nUsage\n=====\n\n### Building Node Packages\n\nTo build latest stable Node.js package:\n\n```shell\n\tbitbake nodejs\n```\n\n### Node.js as a dependency\n\nAdd Node.js as a dependency in recipe with `RDEPENDS` (for runtime) or `DEPENDS` (for build):\n\n```bitbake\n\tDEPENDS += \" nodejs\"\n\tRDEPENDS_${PN} += \" nodejs\"\n```\n\n### `npm install` buildable recipes\n\nInherit `npm-install` build task class in your recipe.\n\nBitbake classes \n===============\n\n`meta-nodejs` layer adds few Node.js related helper classes.\n\n## `npm-base` class\n\n`npm-base` class defines following functions:\n \n  * `oe_runnpm`: call cross-compiling `npm`\n  * `oe_runnpm_native`: call native-compiling `npm`\n  \nFor example:\n\n```bitbake\n  inherit npm-base\n\n  do_install() {\n\toe_runnpm install     # Installs dependencies defined in package.json\n  }\n```\n\n### Variables\n\n * `NPM_FLAGS`: Extra command line arguments for `npm` calls made by `oe_runnpm()`\n * `NPM_ARCH`: Override npm target architecture (defaults to `TARGET_ARCH`)\n * `NPM_REGISTRY`: override npm registry URL\n\n## `npm-install` class\n\n`npm-install` class inherits `npm-base` class and adds following build tasks (listed in their run order):\n\n  * `npm_install`: runs `npm install` in source directory\n  * `npm_shrinkwrap`: runs `npm shrinkwrap` in source directory\n  * `npm_dedupe`: runs `npm dedupe` in source directory\n\nYou can disable one or more of these build tasks in the recipe with `do_\u003ctaskname\u003e[noexec] = \"1\"`:\n\n```bitbake\n  do_npm_shrinkwrap[noexec] = \"1\"\n```\n\n### Variables\n\n * `NPM_INSTALL_FLAGS`: Extra command line arguments for `npm` calls made in `npm_install` task \n * `NPM_INSTALL`: Parameters for `npm install` command (such as specific package names)\n\n## `npm-install-global` class\n\n`npm-install-global` class inherits `npm-base` class and installs the selected package globally.\nThis is done in the `do_install` task of the class.\n\n### Variables\n\n* `NPM_INSTALL_FLAGS`: Extra command line arguments for `npm` calls made in `do_install` and `do_configure` task\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimyller%2Fmeta-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimyller%2Fmeta-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimyller%2Fmeta-nodejs/lists"}