<?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>13349</bug_id>
          
          <creation_ts>2019-05-14 09:21:48 +0000</creation_ts>
          <short_desc>npm install directory conflicts with node default</short_desc>
          <delta_ts>2019-10-02 09:25:49 +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>Meta-yocto</product>
          <component>configuration</component>
          <version>2.6.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jean-Marie Lemetayer">jeanmarie.lemetayer</reporter>
          <assigned_to name="Jean-Marie Lemetayer">jeanmarie.lemetayer</assigned_to>
          <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>83803</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Marie Lemetayer">jeanmarie.lemetayer</who>
    <bug_when>2019-05-14 09:21:48 +0000</bug_when>
    <thetext>Preconditions/Environment
-------------------------
Build environment with:
 - poky on the thud branch
 - meta-openembedded on the thud branch

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

Expectation
-----------
A symlink file /usr/bin/cute-files is created and link to a valid file.

Actual Result
-------------
/usr/bin/cute-files links to ../lib/node_modules/.. and not to ../lib/node/..

Reproducibility
---------------
10/10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83827</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-05-16 14:48:38 +0000</bug_when>
    <thetext>Hi, Thanks for reporting this. Does the issue also reproduce against master?

Unfortunately we don&apos;t have an expert on the npm pieces right now, the people who worked on it have moved on to other things. Were you able to come up with a fix?

Cheers,

Richard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83845</commentid>
    <comment_count>2</comment_count>
    <who name="Jean-Marie Lemetayer">jeanmarie.lemetayer</who>
    <bug_when>2019-05-17 14:08:24 +0000</bug_when>
    <thetext>Hi, yes I have a fix (and few others).

This touch the npm.bbclass file in meta/classes/npm.bbclass.

On which mailing list should I submit these ? bitbake-devel ? poky ?

Regards,
Jean-Marie</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83846</commentid>
    <comment_count>3</comment_count>
    <who name="Jean-Marie Lemetayer">jeanmarie.lemetayer</who>
    <bug_when>2019-05-17 14:11:14 +0000</bug_when>
    <thetext>Move to NEEDINFO</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83871</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-05-21 21:59:07 +0000</bug_when>
    <thetext>Sorry, the npm.bbclass changes should go to the openembedded-core mailing list. I saw them on bitbake-devel and sorted them out regardless but if any future patches could go to there, that would be great!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85142</commentid>
    <comment_count>5</comment_count>
    <who name="Jean-Marie Lemetayer">jeanmarie.lemetayer</who>
    <bug_when>2019-10-02 09:25:49 +0000</bug_when>
    <thetext>Fixed by https://git.openembedded.org/openembedded-core/commit/?id=2d72007deea7ed529f82b8a6e67e2715dd0a0dca</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>