[OE-core] npm class usage

Fabio Berton fabio.berton at ossystems.com.br
Tue May 3 16:24:49 UTC 2016


Hi all!

I'm trying to install some recipes that use npm class and I have two
questions.

1 - Why use S = "${WORKDIR}/npmpkg"? This not work for me.

2 - Using option --no-registry inside npm_do_compile task I get this error:

| npm ERR! Registry not defined and registry files not found:
"/home/user/prj/build/tmp/work/all-linux-musleabi/gulp-cli/1.2.1-r0/npm_cache/noregistry/wreck/.cache.json",
"/home/user/prj/build/tmp/work/all-linux-musleabi/gulp-cli/1.2.1-r0/npm_cache/wreck/.cache.json".
| npm ERR!
| npm ERR! If you need help, you may report this error at:
| npm ERR!     <https://github.com/npm/npm/issues>
| npm ERR! Linux 3.18.0-trunk-amd64
| npm ERR! argv
"/home/user/prj/build/tmp/sysroots/x86_64-linux/usr/bin/node"
"/home/user/prj/build/tmp/sysroots/x86_64-linux/usr/bin/npm"
"--arch=arm" "--production" "--no-registry" "install"
| npm ERR! node v4.4.1
| npm ERR! npm  v2.14.20

I found this issue https://github.com/npm/npm/issues/5509 and using
--cache-min 99999 instead of --no-registry this error doesn't appears and
build works fine.

I noticed that nodejs recipe is using this patch
https://github.com/bendaaron/meta-oe-dev/commit/3e02a40d689a7002547215473a00606d8213ce0c
but seems not fix for me.

I'm missing something to use this class?

Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160503/1a8731fb/attachment-0002.html>


More information about the Openembedded-core mailing list