Bug 11733 - npm.bbclass fails in install phase
Summary: npm.bbclass fails in install phase
Status: RESOLVED DUPLICATE of bug 11728
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-06-29 09:33 UTC by Ismo Puustinen
Modified: 2017-06-29 09:37 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***