From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23744: guix: npm don't run Date: Sun, 12 Jun 2016 22:30:18 +0200 Message-ID: <87d1nmjgkl.fsf@gnu.org> References: <20160610083107.6ce9daa9@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCC2F-0003NT-Kk for bug-guix@gnu.org; Sun, 12 Jun 2016 16:31:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCC2A-000841-PW for bug-guix@gnu.org; Sun, 12 Jun 2016 16:31:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCC2A-00083x-MA for bug-guix@gnu.org; Sun, 12 Jun 2016 16:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bCC2A-0008DP-IV for bug-guix@gnu.org; Sun, 12 Jun 2016 16:31:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20160610083107.6ce9daa9@riseup.net> (Jovany Leandro G. C.'s message of "Fri, 10 Jun 2016 08:31:07 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: "Jovany Leandro G.C" Cc: Jelle Licht , 23744@debbugs.gnu.org Hello! "Jovany Leandro G.C" skribis: > this distro it's amazing i very happy using it. Thanks for your kind words. :-) > i install **guix package -i npm** version *6.0.0* node=20 > and when try **npm** this throws: > > ~~~ > Error: Cannot find module '../lib/npm.js' > at Function.Module._resolveFilename (module.js:438:15) > at Function.Module._load (module.js:386:25) > at Module.require (module.js:466:17) > at require (internal/module.js:20:19) > at /gnu/store/y98akn298a47sn3f7c19pzw98jw9a14b-node-6.0.0/bin/npm:26:= 13 > at Object. > (/gnu/store/y98akn298a47sn3f7c19pzw98jw9a14b-node-6.0.0/bin/npm:76:3) > at Module._compile (module.js:541:32) at Object.Module._extensions..js > (module.js:550:10) at Module.load (module.js:456:32) > at tryModuleLoad (module.js:415:12) > ~~~ > > i fix for working: > > create a file $HOME/bin/npm > ~~~ > #!/bin/sh > node $HOME/.guix-profile/lib/node_modules/npm/bin/npm-cli.js $@ > ~~~ This seems to be related to: http://bugs.gnu.org/23723 Jelle: I gather you have a patch around that changes or removes the =E2=80=98patch-shebangs=E2=80=99 phase for npm? Could you submit it on gui= x-devel? TIA. :-) Ludo=E2=80=99.