GNU bug report logs - #23744
guix: npm don't run

Previous Next

Package: guix;

Reported by: "Jovany Leandro G.C" <bit4bit <at> riseup.net>

Date: Fri, 10 Jun 2016 18:42:01 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: ludo <at> gnu.org (Ludovic Courtès)
To: "Jovany Leandro G.C" <bit4bit <at> riseup.net>
Cc: Jelle Licht <jlicht <at> fsfe.org>, 23744 <at> debbugs.gnu.org
Subject: bug#23744: guix: npm don't run
Date: Sun, 12 Jun 2016 22:30:18 +0200
Hello!

"Jovany Leandro G.C" <bit4bit <at> riseup.net> 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 
> 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.<anonymous>
> (/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
‘patch-shebangs’ phase for npm?  Could you submit it on guix-devel?

TIA.  :-)

Ludo’.




This bug report was last modified 9 years and 50 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.