npm2debian icon indicating copy to clipboard operation
npm2debian copied to clipboard

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

Open hartwork opened this issue 11 years ago • 3 comments

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.

hartwork avatar May 21 '14 11:05 hartwork

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

arikon avatar May 24 '14 16:05 arikon

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?

hartwork avatar May 24 '14 18:05 hartwork

A wrapper is a good idea

arikon avatar Jan 30 '16 22:01 arikon