<?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>10517</bug_id>
          
          <creation_ts>2016-10-28 00:42:53 +0000</creation_ts>
          <short_desc>npm packaging does not create executable for application module</short_desc>
          <delta_ts>2016-10-28 02:12: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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>10460</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="Henry Bruce">henry.bruce</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67703</commentid>
    <comment_count>0</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-10-28 00:42:53 +0000</bug_when>
    <thetext>If you have an npm application module called say &quot;my-node-app&quot;, when running &quot;npm install my-node-app&quot; a link to usr/bin/my-node-app is created. 
i.e. /usr/bin/my-node-app -&gt; /usr/lib/node_modules/my-node-app/my-node-app.js

However devtool does not create this link when packaging the module so it cannot be run as &apos;my-node-app&apos; and instead it must be started as 
node usr/lib/node_modules/my-node-app/my-node-app.js</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67705</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-10-28 02:12:49 +0000</bug_when>
    <thetext>Duplicate of bug 10460 (which I have a patch for, I just haven&apos;t sent it yet).

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

    </bug>

</bugzilla>