Yocto Project Discussions
 help / color / mirror / Atom feed
* NPM package recipe, npm not found
@ 2020-10-07 14:51 Bel Hadj Salem Talel
  2020-10-07 14:55 ` [yocto] " Quentin Schulz
  0 siblings, 1 reply; 3+ messages in thread
From: Bel Hadj Salem Talel @ 2020-10-07 14:51 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]

Hi,

I'm trying to make a recipe for an NPM package.
The source files are local.
Here is my recipe:

LICENSE="CLOSED"
SRC_URI+="file://sense-web_${PV].zip"
S=${WORKDIR}
DEPENDS+="nodejs"
do_compile(){
export HOME=${S}
npm install
npm run-script build
}

*The following error appears:*

Log data follows:
| DEBUG: Executing shell function do_compile
| /media/talel/data/menzu-zeus/menzu/tmp/work/aarch64-poky-linux/sense-web/1.0-r0/temp/run.do_compile.11622: 107: /media/talel/data/menzu-zeus/menzu/tmp/work/aarch64-poky-linux/sense-web/1.0-r0/temp/run.do_compile.11622: npm: not found
| WARNING: exit code 127 from a shell command.
| ERROR: Execution of '/media/talel/data/menzu-zeus/menzu/tmp/work/aarch64-poky-linux/sense-web/1.0-r0/temp/run.do_compile.11622' failed with exit code 127:
| /media/talel/data/menzu-zeus/menzu/tmp/work/aarch64-poky-linux/sense-web/1.0-r0/temp/run.do_compile.11622: 107: /media/talel/data/menzu-zeus/menzu/tmp/work/aarch64-poky-linux/sense-web/1.0-r0/temp/run.do_compile.11622: npm: not found
| WARNING: exit code 127 from a shell command.
|

I did the same steps in devshell of nodejs and everything is correct.
I tried to add the recipe with devtool , devtool add sense-web_1.0.zip but it failed.

Any ideas?
Thanks, Talel

[-- Attachment #2: Type: text/html, Size: 1449 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-07 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-07 14:51 NPM package recipe, npm not found Bel Hadj Salem Talel
2020-10-07 14:55 ` [yocto] " Quentin Schulz
2020-10-07 15:28   ` Bel Hadj Salem Talel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox