Bug 14847 - Error building an npm package: npmignore: not found
Summary: Error building an npm package: npmignore: not found
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: 4.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 4.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-06-23 14:26 UTC by Michael Opdenacker
Modified: 2022-06-29 09:43 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
Build log (72.38 KB, application/octet-stream)
2022-06-23 14:26 UTC, Michael Opdenacker
no flags Details
Recipe generated by devtool / recipetool (8.69 KB, application/octet-stream)
2022-06-23 14:27 UTC, Michael Opdenacker
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Opdenacker 2022-06-23 14:26:19 UTC
Created attachment 4886 [details]
Build log

I'm testing the Yocto Project Documentation for creating NPM packages (https://docs.yoctoproject.org/dev-manual/common-tasks.html#creating-node-package-manager-npm-packages).

I managed to create a recipe for cute-files 1.0.2 using devtool, but I can't manage to build the recipe. Here's what I get:

/home/mike/work/yocto/poky/build/workspace/sources/cute-files/node_modules/get-intrinsic --ignore-scripts=true failed with exit code 127, output:

> get-intrinsic@1.1.2 prepack
> npmignore --auto --commentLines=autogenerated

sh: 1: npmignore: not found

I do have the "nodejs" package in my image though, as recommended by the manual.

The recipe and full log files are available in https://bootlin.com/~mike/pub/yocto-project/npm-2022-06-21/.
Comment 1 Michael Opdenacker 2022-06-23 14:27:31 UTC
Created attachment 4887 [details]
Recipe generated by devtool / recipetool