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: Wed, 29 Jun 2016 10:08:22 +0200 Message-ID: <8737nwa03t.fsf@gnu.org> References: <20160610083107.6ce9daa9@riseup.net> <87d1nmjgkl.fsf@gnu.org> 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]:52465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIAYV-000790-1h for bug-guix@gnu.org; Wed, 29 Jun 2016 04:09:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIAYQ-0007q9-Rv for bug-guix@gnu.org; Wed, 29 Jun 2016 04:09:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIAYQ-0007pu-Nr for bug-guix@gnu.org; Wed, 29 Jun 2016 04:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bIAYQ-00024C-KD for bug-guix@gnu.org; Wed, 29 Jun 2016 04:09:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87d1nmjgkl.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 12 Jun 2016 22:30:18 +0200") 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: 23744-done@debbugs.gnu.org, Jelle Licht ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > "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 g= uix-devel? I pushed a workaround in Node itself as commit 2de091f0c8ee143b1dd07483b3b86a31870342c0. Eventually we=E2=80=99ll push Jelle=E2=80=99s fix for #23723, but since tha= t=E2=80=99s a rebuild-the-world change, it=E2=80=99ll be some time before it=E2=80=99s av= ailable, so this workaround is our best bet for now. Thanks! Ludo=E2=80=99.