arikon / npm2debian

Utility to convert npm packages to Debian packages
32 stars 13 forks source link

Shebang line "#!/usr/bin/env node" trouble #23

Open hartwork opened 10 years ago

hartwork commented 10 years ago

In Debian sid, node is called nodejs instead, see:

$ npm2debian 
/usr/bin/env: node: No such file or directory

$ nodejs /usr/local/bin/npm2debian 
Missing required argument:
  PKG : Package (required)

My guess is that it's the case because /usr/sbin/node is taken by Amateur Packet Radio Node program already (see https://packages.debian.org/wheezy/all/node/filelist).

Please update the shebang line accordingly.

arikon commented 10 years ago

@hartwork It is still called node elsewhere. So what should we do?

hartwork commented 10 years ago

Does npm just extract files or can it be made to run a patch patching the shebang line if on debian?

Or: You could make a shell wrapper npm2debian-node that's calling nodejs if on Debian or node otherwise. What do you think?

arikon commented 8 years ago

A wrapper is a good idea