<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11733</bug_id>
          
          <creation_ts>2017-06-29 09:33:52 +0000</creation_ts>
          <short_desc>npm.bbclass fails in install phase</short_desc>
          <delta_ts>2017-06-29 09:37:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>11728</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ismo Puustinen">ismo.puustinen</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>74627</commentid>
    <comment_count>0</comment_count>
    <who name="Ismo Puustinen">ismo.puustinen</who>
    <bug_when>2017-06-29 09:33:52 +0000</bug_when>
    <thetext>Using nodejs 4.8.3 from meta-openembedded, following the instructions at https://wiki.yoctoproject.org/wiki/TipsAndTricks/NPM:

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

The bitbake command fails with:

| npm ERR! Linux 4.11.5-200.fc25.x86_64
| npm ERR! argv &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/node&quot; &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/npm&quot; &quot;install&quot; &quot;--prefix&quot; &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/image/usr&quot; &quot;-g&quot; &quot;--arch=ia32&quot; &quot;--target_arch=ia32&quot; &quot;--production&quot; &quot;--no-registry&quot;
| npm ERR! node v4.8.3
| npm ERR! npm  v2.15.11
|
| npm ERR! Registry not defined and registry files not found: &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/noregistry/commander/.cache.json&quot;, &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/commander/.cache.json&quot;.
| npm ERR!
| npm ERR! If you need help, you may report this error at:
| npm ERR!     &lt;https://github.com/npm/npm/issues&gt;
| npm ERR! Linux 4.11.5-200.fc25.x86_64
| npm ERR! argv &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/node&quot; &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/npm&quot; &quot;install&quot; &quot;--prefix&quot; &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/image/usr&quot; &quot;-g&quot; &quot;--arch=ia32&quot; &quot;--target_arch=ia32&quot; &quot;--production&quot; &quot;--no-registry&quot;
| npm ERR! node v4.8.3
| npm ERR! npm  v2.15.11
|
| npm ERR! Registry not defined and registry files not found: &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/noregistry/content-disposition/.cache.json&quot;, &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/content-disposition/.cache.json&quot;.
| npm ERR!
| npm ERR! If you need help, you may report this error at:
| npm ERR!     &lt;https://github.com/npm/npm/issues&gt;
| npm ERR! Linux 4.11.5-200.fc25.x86_64
| npm ERR! argv &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/node&quot; &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/recipe-sysroot-native/usr/bin/npm&quot; &quot;install&quot; &quot;--prefix&quot; &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/image/usr&quot; &quot;-g&quot; &quot;--arch=ia32&quot; &quot;--target_arch=ia32&quot; &quot;--production&quot; &quot;--no-registry&quot;
| npm ERR! node v4.8.3
| npm ERR! npm  v2.15.11
|
| npm ERR! Registry not defined and registry files not found: &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/noregistry/express/.cache.json&quot;, &quot;/home/ipuustin/git/poky/build/tmp/work/i586-poky-linux/cute-files/1.0.2-r0/npm_cache/express/.cache.json&quot;.
| npm ERR!
| npm ERR! If you need help, you may report this error at:
| npm ERR!     &lt;https://github.com/npm/npm/issues&gt;
|
| 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 &apos;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&apos;
| 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 &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74628</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-06-29 09:37:21 +0000</bug_when>
    <thetext>Looks like a duplicate of bug 11728.

*** This bug has been marked as a duplicate of bug 11728 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>