<?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>11425</bug_id>
          
          <creation_ts>2017-04-27 02:35:36 +0000</creation_ts>
          <short_desc>johnny-five npm example fails, npm not found</short_desc>
          <delta_ts>2017-05-02 10:22:59 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Minggang Wang">minggang.wang</reporter>
          <assigned_to name="Patrick Ohly">patrick.ohly</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>henry.bruce</cc>
    
    <cc>mikko.ylinen</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72884</commentid>
    <comment_count>0</comment_count>
    <who name="Minggang Wang">minggang.wang</who>
    <bug_when>2017-04-27 02:35:36 +0000</bug_when>
    <thetext>Environment:
Ubuntu 16.04, build without docker, follow the instruction https://github.com/intel/intel-iot-refkit

Triggering Action:
1. Add the following lines to local.conf
SUPPORTED_RECIPES_CHECK_append = &quot; warn&quot;
SUPPORTED_RECIPES_CHECK_remove = &quot;fatal&quot;
REFKIT_IMAGE_EXTRA_INSTALL_append = &quot; johnny-five&quot;

2. run command $bitbake refkit-image-common

Expectation:
Build successfully

Actual Result:
npm view johnny-five@0.9.59 dist.tarball --registry http://registry.npmjs.org failed with exit code 127, output:
/bin/sh: 1: npm: not found

ERROR: johnny-five-0.9.59-r0 do_fetch: Fetcher failure for URL: &apos;npm://registry.npmjs.org;name=johnny-five;version=0.9.59&apos;. Unable to fetch URL from any source.
ERROR: johnny-five-0.9.59-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/minggang/work/intel-iot-refkit/build/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/temp/log.do_fetch.26822
ERROR: Task (/home/minggang/work/intel-iot-refkit/openembedded-core/../meta-iot-web/recipes-devtools/johnny-five/johnny-five_0.9.59.bb:do_fetch) failed with exit code &apos;1&apos;

Reproducibility:
Yes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72904</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-04-27 15:13:37 +0000</bug_when>
    <thetext>Which revision of intel-iot-refkit is this with?

I tried with dbc675f0f97052ca2a9563d4a4d4b1467a88681e (almost current master) and for me at least do_fetch worked.

&quot;bitbake johnny-five&quot; still fails, though:

$ bitbake johnny-five
...
meta-selftest     = &quot;HEAD:ba2884f6ad3a4e746fc80cbd707f83fa8abd4210&quot;
meta-intel        = &quot;HEAD:60c270394755c36d3cf2d1df61b3795521e1caa0&quot;
meta-refkit       = &quot;HEAD:dbc675f0f97052ca2a9563d4a4d4b1467a88681e&quot;
meta-oic          = &quot;HEAD:b9ba736871b8f8b741cc9c1d88dda56e63a35091&quot;
meta-iot-web      = &quot;HEAD:e4310f8a34a985fa62eb66c7742088dc7943bedb&quot;
meta-iotqa        = &quot;HEAD:dbc675f0f97052ca2a9563d4a4d4b1467a88681e&quot;
meta-security     = &quot;HEAD:6674749274e47937af640ffaa2480e26a362e5f6&quot;
meta-security-isafw = &quot;HEAD:834272c2471a86aca826170036598889b5dd552a&quot;
meta-intel-realsense = &quot;HEAD:1d50cb5b82926f8e69a78999e9e8d2ffe2169897&quot;
meta-clang        = &quot;HEAD:0cb6aaa39d22c461c076b145cecf4d7e8dae2c7f&quot;
meta-filesystems  
meta-gnome        
meta-networking   
meta-oe           
meta-perl         
meta-python       = &quot;HEAD:cdb428e7c49899675ee7b7a43f6cecdb5b4c2546&quot;
meta-integrity    
meta-security-framework 
meta-security-smack = &quot;root-ca-cert:baac71ebfe20498edfeb057721161c102508fcf2&quot;
...
ERROR: johnny-five-0.9.59-r0 do_install: Function failed: do_install (log file is located at /fast/build/refkit/intel-corei7-64/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/temp/log.do_install.8675)
ERROR: Logfile of failure stored in: /fast/build/refkit/intel-corei7-64/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/temp/log.do_install.8675
Log data follows:
...
| DEBUG: Executing shell function do_install
| npm ERR! Linux 4.9.0-0.bpo.2-amd64
| npm ERR! argv &quot;/fast/build/refkit/intel-corei7-64/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin/node&quot; &quot;/fast/build/refkit/intel-corei7-64/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin/npm&quot; &quot;install&quot; &quot;--prefix&quot; &quot;/fast/build/refkit/intel-corei7-64/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/image/usr&quot; &quot;-g&quot; &quot;--arch=x64&quot; &quot;--target_arch=x64&quot; &quot;--production&quot; &quot;--no-registry&quot;
| npm ERR! node v4.5.0
| npm ERR! npm  v2.15.9
| 
| npm ERR! registry URL is required
| 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.9.0-0.bpo.2-amd64
| npm ERR! argv &quot;/fast/build/refkit/intel-corei7-64/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin/node&quot; &quot;/fast/build/refkit/intel-corei7-64/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin/npm&quot; &quot;install&quot; &quot;--prefix&quot; &quot;/fast/build/refkit/intel-corei7-64/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/image/usr&quot; &quot;-g&quot; &quot;--arch=x64&quot; &quot;--target_arch=x64&quot; &quot;--production&quot; &quot;--no-registry&quot;
...

Paul, any idea what that is about?

Mikko, do we currently test npm examples in refkit?

One can check with &quot;bitbake -c devshell johnny-five&quot; whether there is a npm:

$ bitbake -c devshell johnny-five
...
# which npm
/fast/build/refkit/intel-corei7-64/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin/npm
# npm --version
2.15.9

Minggang, is there really no npm in your corresponding johnny-five/0.9.59-r0/recipe-sysroot-native?

Paul, a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72923</commentid>
    <comment_count>2</comment_count>
    <who name="Minggang Wang">minggang.wang</who>
    <bug_when>2017-04-28 02:04:00 +0000</bug_when>
    <thetext>Hi Patrick, I checked the path, there is a npm under tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin.

Actually, I tried to workaround this problem by adding in local.conf:
  HOSTTOOLS_append = &quot; npm&quot;

Then, it reports the same error exactly as you described above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72925</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-04-28 06:40:00 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Hi Patrick, I checked the path, there is a npm under
&gt; tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-
&gt; native/usr/bin.

Than that&apos;s the one it should have used.

Which revision of intel-iot-refkit are you using?

&gt; Actually, I tried to workaround this problem by adding in local.conf:
&gt;   HOSTTOOLS_append = &quot; npm&quot;
&gt; 
&gt; Then, it reports the same error exactly as you described above.

As a workaround that&apos;s okay, but it&apos;s not the right solution for the &quot;npm not found&quot; problem, because we don&apos;t want to depend on some random version of npm on the build host.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72926</commentid>
    <comment_count>4</comment_count>
    <who name="Minggang Wang">minggang.wang</who>
    <bug_when>2017-04-28 06:49:53 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Hi Patrick, I checked the path, there is a npm under
&gt; &gt; tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-
&gt; &gt; native/usr/bin.
&gt; 
&gt; Than that&apos;s the one it should have used.
&gt; 
&gt; Which revision of intel-iot-refkit are you using?
&gt; 
BitBake Build Tool Core version 1.33.2

&gt; &gt; Actually, I tried to workaround this problem by adding in local.conf:
&gt; &gt;   HOSTTOOLS_append = &quot; npm&quot;
&gt; &gt; 
&gt; &gt; Then, it reports the same error exactly as you described above.
&gt; 
&gt; As a workaround that&apos;s okay, but it&apos;s not the right solution for the &quot;npm
&gt; not found&quot; problem, because we don&apos;t want to depend on some random version
&gt; of npm on the build host.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72928</commentid>
    <comment_count>5</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-04-28 07:48:27 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; Hi Patrick, I checked the path, there is a npm under
&gt; &gt; &gt; tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-
&gt; &gt; &gt; native/usr/bin.
&gt; &gt; 
&gt; &gt; Than that&apos;s the one it should have used.
&gt; &gt; 
&gt; &gt; Which revision of intel-iot-refkit are you using?
&gt; &gt; 
&gt; BitBake Build Tool Core version 1.33.2

No, I meant &quot;which git revision of intel-iot-refkit&quot; are you using?

One more test (without your HOSTTOOLS workaround): please run &quot;bitbake -c devshell johnny-five&quot;, then in the console prompt of the devshell, type &quot;which npm&quot; and &quot;echo $PATH&quot;. Does that find the npm that you have and if not, why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72930</commentid>
    <comment_count>6</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-04-28 07:54:20 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Environment:
&gt; Ubuntu 16.04, build without docker, follow the instruction
&gt; https://github.com/intel/intel-iot-refkit
&gt; 
&gt; Triggering Action:
&gt; 1. Add the following lines to local.conf
&gt; SUPPORTED_RECIPES_CHECK_append = &quot; warn&quot;
&gt; SUPPORTED_RECIPES_CHECK_remove = &quot;fatal&quot;
&gt; REFKIT_IMAGE_EXTRA_INSTALL_append = &quot; johnny-five&quot;
&gt; 
&gt; 2. run command $bitbake refkit-image-common
&gt; 
&gt; Expectation:
&gt; Build successfully
&gt; 
&gt; Actual Result:
&gt; npm view johnny-five@0.9.59 dist.tarball --registry
&gt; http://registry.npmjs.org failed with exit code 127, output:
&gt; /bin/sh: 1: npm: not found
&gt; 

We don&apos;t install npm in refkit-image-common. refkit-image-gateway should have it.

&gt; ERROR: johnny-five-0.9.59-r0 do_fetch: Fetcher failure for URL:
&gt; &apos;npm://registry.npmjs.org;name=johnny-five;version=0.9.59&apos;. Unable to fetch
&gt; URL from any source.
&gt; ERROR: johnny-five-0.9.59-r0 do_fetch: Function failed: base_do_fetch
&gt; ERROR: Logfile of failure stored in:
&gt; /home/minggang/work/intel-iot-refkit/build/tmp-glibc/work/corei7-64-refkit-
&gt; linux/johnny-five/0.9.59-r0/temp/log.do_fetch.26822
&gt; ERROR: Task
&gt; (/home/minggang/work/intel-iot-refkit/openembedded-core/../meta-iot-web/
&gt; recipes-devtools/johnny-five/johnny-five_0.9.59.bb:do_fetch) failed with
&gt; exit code &apos;1&apos;

Is your proxy correctly set? Without the proxy setting wget fails.

I&apos;m seeing the install failure too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72932</commentid>
    <comment_count>7</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-04-28 09:51:53 +0000</bug_when>
    <thetext>On #yocto IRC, Paul said about the do_install error:

it&apos;s basically because some dependency in the .json file isn&apos;t being correctly satisfied, so npm thinks it needs a registry, but we are telling it not to use one and so it blows up

So that&apos;s something else, perhaps related to this specific example. I&apos;m no NodeJS expert.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72963</commentid>
    <comment_count>8</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-05-01 23:25:46 +0000</bug_when>
    <thetext>The npm not found issue is caused by a missing dependency from do_fetch on nodejs-native i.e.

do_fetch[depends] += &quot;nodejs-native:do_populate_sysroot&quot;

I will send a patch to add that to npm.bbclass shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72964</commentid>
    <comment_count>9</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-05-01 23:52:06 +0000</bug_when>
    <thetext>Actually, scratch that last comment - that can&apos;t be true, base.bbclass should already be adding that dependency. Will investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72967</commentid>
    <comment_count>10</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-05-02 04:45:10 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; Actually, scratch that last comment - that can&apos;t be true, base.bbclass
&gt; should already be adding that dependency. Will investigate.

My understanding is npm is not found in the final image. See comment #6. That is expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72968</commentid>
    <comment_count>11</comment_count>
    <who name="Minggang Wang">minggang.wang</who>
    <bug_when>2017-05-02 05:23:39 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; &gt; Hi Patrick, I checked the path, there is a npm under
&gt; &gt; &gt; &gt; tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-
&gt; &gt; &gt; &gt; native/usr/bin.
&gt; &gt; &gt; 
&gt; &gt; &gt; Than that&apos;s the one it should have used.
&gt; &gt; &gt; 
&gt; &gt; &gt; Which revision of intel-iot-refkit are you using?
&gt; &gt; &gt; 
&gt; &gt; BitBake Build Tool Core version 1.33.2
&gt; 
The SHA is 4d087e62975ff9ba

&gt; No, I meant &quot;which git revision of intel-iot-refkit&quot; are you using?
&gt; 
&gt; One more test (without your HOSTTOOLS workaround): please run &quot;bitbake -c
&gt; devshell johnny-five&quot;, then in the console prompt of the devshell, type
&gt; &quot;which npm&quot; and &quot;echo $PATH&quot;. Does that find the npm that you have and if
&gt; not, why?
When I was running (without adding the HOSTTOOLS) &quot;bitbake -c devshell johnny-five&quot;, reports:

/bin/sh: 1: npm: not found

ERROR: johnny-five-0.9.59-r0 do_fetch: Fetcher failure for URL: &apos;npm://registry.npmjs.org;name=johnny-five;version=0.9.59&apos;. Unable to fetch URL from any source.
ERROR: johnny-five-0.9.59-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/minggang/work/intel-iot-refkit/build/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/temp/log.do_fetch.27829
ERROR: Task (/home/minggang/work/intel-iot-refkit/openembedded-core/../meta-iot-web/recipes-devtools/johnny-five/johnny-five_0.9.59.bb:do_fetch) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72969</commentid>
    <comment_count>12</comment_count>
    <who name="Minggang Wang">minggang.wang</who>
    <bug_when>2017-05-02 05:27:09 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #0)
&gt; &gt; Environment:
&gt; &gt; Ubuntu 16.04, build without docker, follow the instruction
&gt; &gt; https://github.com/intel/intel-iot-refkit
&gt; &gt; 
&gt; &gt; Triggering Action:
&gt; &gt; 1. Add the following lines to local.conf
&gt; &gt; SUPPORTED_RECIPES_CHECK_append = &quot; warn&quot;
&gt; &gt; SUPPORTED_RECIPES_CHECK_remove = &quot;fatal&quot;
&gt; &gt; REFKIT_IMAGE_EXTRA_INSTALL_append = &quot; johnny-five&quot;
&gt; &gt; 
&gt; &gt; 2. run command $bitbake refkit-image-common
&gt; &gt; 
&gt; &gt; Expectation:
&gt; &gt; Build successfully
&gt; &gt; 
&gt; &gt; Actual Result:
&gt; &gt; npm view johnny-five@0.9.59 dist.tarball --registry
&gt; &gt; http://registry.npmjs.org failed with exit code 127, output:
&gt; &gt; /bin/sh: 1: npm: not found
&gt; &gt; 
&gt; 
&gt; We don&apos;t install npm in refkit-image-common. refkit-image-gateway should
&gt; have it.
&gt; 
&gt; &gt; ERROR: johnny-five-0.9.59-r0 do_fetch: Fetcher failure for URL:
&gt; &gt; &apos;npm://registry.npmjs.org;name=johnny-five;version=0.9.59&apos;. Unable to fetch
&gt; &gt; URL from any source.
&gt; &gt; ERROR: johnny-five-0.9.59-r0 do_fetch: Function failed: base_do_fetch
&gt; &gt; ERROR: Logfile of failure stored in:
&gt; &gt; /home/minggang/work/intel-iot-refkit/build/tmp-glibc/work/corei7-64-refkit-
&gt; &gt; linux/johnny-five/0.9.59-r0/temp/log.do_fetch.26822
&gt; &gt; ERROR: Task
&gt; &gt; (/home/minggang/work/intel-iot-refkit/openembedded-core/../meta-iot-web/
&gt; &gt; recipes-devtools/johnny-five/johnny-five_0.9.59.bb:do_fetch) failed with
&gt; &gt; exit code &apos;1&apos;
&gt; 
&gt; Is your proxy correctly set? Without the proxy setting wget fails.
&gt; 
&gt; I&apos;m seeing the install failure too.

I have set the proxy in ~/.wgetrc in the whole process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72973</commentid>
    <comment_count>13</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-05-02 08:21:24 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt; The SHA is 4d087e62975ff9ba

I was able to reproduce the problem with that revision after deleting my copy of the johnny-five source with &quot;bitbake -c cleanall johnny-five&quot;.

It does not occur with current master (= de6a4227af102470aa3482750b81e18839152a1e). Please update to that and try again. Remember to do &quot;git submodule update&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72976</commentid>
    <comment_count>14</comment_count>
    <who name="Minggang Wang">minggang.wang</who>
    <bug_when>2017-05-02 09:41:17 +0000</bug_when>
    <thetext>(In reply to comment #13)
&gt; (In reply to comment #11)
&gt; &gt; The SHA is 4d087e62975ff9ba
&gt; 
&gt; I was able to reproduce the problem with that revision after deleting my
&gt; copy of the johnny-five source with &quot;bitbake -c cleanall johnny-five&quot;.
&gt; 
&gt; It does not occur with current master (=
&gt; de6a4227af102470aa3482750b81e18839152a1e). Please update to that and try
&gt; again. Remember to do &quot;git submodule update&quot;.

I pulled the latest code, and there is no &quot;npm not found!&quot; error now. Running &quot;bitbake -c devshell johnny-five&quot; and &quot;npm&quot; points to &quot;tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin/npm&quot; in the shell. But still have the following error during the building process:

| npm ERR! registry URL is required
| 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.4.0-72-generic
| npm ERR! argv &quot;/home/minggang/work/intel-iot-refkit/build/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin/node&quot; &quot;/home/minggang/work/intel-iot-refkit/build/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin/npm&quot; &quot;install&quot; &quot;--prefix&quot; &quot;/home/minggang/work/intel-iot-refkit/build/tmp-glibc/work/corei7-64-refkit-linux/johnny-five/0.9.59-r0/image/usr&quot; &quot;-g&quot; &quot;--arch=x64&quot; &quot;--target_arch=x64&quot; &quot;--production&quot; &quot;--no-registry&quot;
| npm ERR! node v4.5.0
| npm ERR! npm  v2.15.9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72977</commentid>
    <comment_count>15</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-05-02 10:22:40 +0000</bug_when>
    <thetext>(In reply to comment #14)
&gt; But still have the following error during
&gt; the building process:
&gt; 
&gt; | npm ERR! registry URL is required
&gt; | npm ERR!
&gt; | npm ERR! If you need help, you may report this error at:
&gt; | npm ERR!     &lt;https://github.com/npm/npm/issues&gt;
&gt; | npm ERR! Linux 4.4.0-72-generic
&gt; | npm ERR! argv
&gt; &quot;/home/minggang/work/intel-iot-refkit/build/tmp-glibc/work/corei7-64-refkit-
&gt; linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin/node&quot;
&gt; &quot;/home/minggang/work/intel-iot-refkit/build/tmp-glibc/work/corei7-64-refkit-
&gt; linux/johnny-five/0.9.59-r0/recipe-sysroot-native/usr/bin/npm&quot; &quot;install&quot;
&gt; &quot;--prefix&quot;
&gt; &quot;/home/minggang/work/intel-iot-refkit/build/tmp-glibc/work/corei7-64-refkit-
&gt; linux/johnny-five/0.9.59-r0/image/usr&quot; &quot;-g&quot; &quot;--arch=x64&quot; &quot;--target_arch=x64&quot;
&gt; &quot;--production&quot; &quot;--no-registry&quot;
&gt; | npm ERR! node v4.5.0
&gt; | npm ERR! npm  v2.15.9

That&apos;s a separate problem. I&apos;ve filed https://github.com/ostroproject/meta-iot-web/issues/38 for it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>