GNU bug report logs -
#23744
guix: npm don't run
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23744 in the body.
You can then email your comments to 23744 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#23744
; Package
guix
.
(Fri, 10 Jun 2016 18:42:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Jovany Leandro G.C" <bit4bit <at> riseup.net>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Fri, 10 Jun 2016 18:42:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
HI,
this distro it's amazing i very happy using it.
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 $@
~~~
append to $HOME/.bashrc
~~~
export PATH=$HOME/bin:$PATH
~~~
and that's it, now npm works only for local install
for my case i run **npm install ionic <at> beta** and run **node
~/node_modules/ionic/bin/ionic**
and works :)
I hope to be helpful
thanks,
Information forwarded
to
bug-guix <at> gnu.org
:
bug#23744
; Package
guix
.
(Sun, 12 Jun 2016 20:31:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 23744 <at> debbugs.gnu.org (full text, mbox):
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’.
Reply sent
to
ludo <at> gnu.org (Ludovic Courtès)
:
You have taken responsibility.
(Wed, 29 Jun 2016 08:09:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Jovany Leandro G.C" <bit4bit <at> riseup.net>
:
bug acknowledged by developer.
(Wed, 29 Jun 2016 08:09:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 23744-done <at> debbugs.gnu.org (full text, mbox):
ludo <at> gnu.org (Ludovic Courtès) skribis:
> "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?
I pushed a workaround in Node itself as commit
2de091f0c8ee143b1dd07483b3b86a31870342c0.
Eventually we’ll push Jelle’s fix for #23723, but since that’s a
rebuild-the-world change, it’ll be some time before it’s available, so
this workaround is our best bet for now.
Thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 27 Jul 2016 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 158 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.