Bug 11733

Summary: npm.bbclass fails in install phase
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ismo Puustinen <ismo.puustinen>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Undecided CC: bluelightning, meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Ismo Puustinen 2017-06-29 09:33:52 UTC
Using nodejs 4.8.3 from meta-openembedded, following the instructions at https://wiki.yoctoproject.org/wiki/TipsAndTricks/NPM:

    devtool add "npm://registry.npmjs.org;name=cute-files;version=1.0.2"
    bitbake cute-files

The bitbake command fails with:

| npm ERR! Linux 4.11.5-200.fc25.x86_64
| npm ERR! argv "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/node" "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/npm" "install" "--prefix" "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/image/usr" "-g" "--arch=ia32" "--target_arch=ia32" "--production" "--no-registry"
| npm ERR! node v4.8.3
| npm ERR! npm  v2.15.11
|
| npm ERR! Registry not defined and registry files not found: "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/noregistry/commander/.cache.json", "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/commander/.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 4.11.5-200.fc25.x86_64
| npm ERR! argv "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/node" "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/npm" "install" "--prefix" "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/image/usr" "-g" "--arch=ia32" "--target_arch=ia32" "--production" "--no-registry"
| npm ERR! node v4.8.3
| npm ERR! npm  v2.15.11
|
| npm ERR! Registry not defined and registry files not found: "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/noregistry/content-disposition/.cache.json", "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/content-disposition/.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 4.11.5-200.fc25.x86_64
| npm ERR! argv "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/node" "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/npm" "install" "--prefix" "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/image/usr" "-g" "--arch=ia32" "--target_arch=ia32" "--production" "--no-registry"
| npm ERR! node v4.8.3
| npm ERR! npm  v2.15.11
|
| npm ERR! Registry not defined and registry files not found: "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/noregistry/express/.cache.json", "/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/express/.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! Please include the following file with any support request:
| npm ERR!     /home/ipuustin/git/poky/build/workspace/sources/cute-files/npm-debug.log
| WARNING: /home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/temp/run.do_install.5010:1 exit 1 from 'npm install --prefix /home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/image/usr -g --arch=ia32 --target_arch=ia32 --production --no-registry'
| ERROR: Function failed: do_install (log file is located at /home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/temp/log.do_install.5010)
ERROR: Task (/home/ipuustin/git/poky/build/workspace/recipes/cute-files/cute-files_1.0.2.bb:do_install) failed with exit code '1'
Comment 1 Paul Eggleton 2017-06-29 09:37:21 UTC
Looks like a duplicate of bug 11728.

*** This bug has been marked as a duplicate of bug 11728 ***