<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>47191</bug_id>
          
          <creation_ts>2023-08-10 17:42:41 +0300</creation_ts>
          <short_desc>missing runtime dependency</short_desc>
          <delta_ts>2023-08-11 22:03:13 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>npm</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stanislav Levin">slev</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>231195</commentid>
    <comment_count>0</comment_count>
    <who name="Stanislav Levin">slev</who>
    <bug_when>2023-08-10 17:42:41 +0300</bug_when>
    <thetext>Today&apos;s sisyphus:

```
[user@host dir]$ hsh --initroot-only -q &amp;&amp; hsh-install npm &amp;&amp; hsh-run -- npm --version
...
&lt;13&gt;Aug 10 14:31:34 rpmi: npm-9.6.7-alt1 sisyphus+325839.120.9.1 1690821590 installed
/usr/bin/env: &apos;node&apos;: No such file or directory
```

```
[user@host dir]$ hsh-run -- cat /usr/bin/npm
#!/usr/bin/env node
require(&apos;../lib/cli.js&apos;)(process)
```

```
[user@host dir]$ hsh-run -- rpm -q --requires npm
bash
rpmlib(PayloadIsLzma)
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231272</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2023-08-11 20:59:56 +0300</bug_when>
    <thetext>Каков сценарий использования?


Тут чем-то похоже на ситуацию с composer, который мог бы использовать один из php, установленных в системе:

https://bugzilla.altlinux.org/44695


Собственно, раз там #!/usr/bin/env node
я добавлю
BuildRequires: /usr/bin/node</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231277</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-08-11 22:03:13 +0300</bug_when>
    <thetext>npm-9.6.7-alt2 -&gt; sisyphus:

 Fri Aug 11 2023 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 9.6.7-alt2
 - add Requires: /usr/bin/node (ALT bug 47191)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>