Bug 14847

Summary: Error building an npm package: npmignore: not found
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Michael Opdenacker <michael.opdenacker>
Component: oe-core otherAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: randy.macleod, tim.orling
Version: 4.1   
Target Milestone: 4.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
Build log
none
Recipe generated by devtool / recipetool none

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