emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#23744: closed (guix: npm don't run)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#23744: closed (guix: npm don't run)
Date: Wed, 29 Jun 2016 08:09:02 +0000

Your message dated Wed, 29 Jun 2016 10:08:22 +0200
with message-id <address@hidden>
and subject line Re: bug#23744: guix: npm don't run
has caused the debbugs.gnu.org bug report #23744,
regarding guix: npm don't run
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
23744: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23744
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: guix: npm don't run Date: Fri, 10 Jun 2016 08:31:07 -0500
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 address@hidden and run **node
~/node_modules/ionic/bin/ionic**
and works :)

I hope to be helpful
thanks,




--- End Message ---
--- Begin Message --- Subject: Re: bug#23744: guix: npm don't run Date: Wed, 29 Jun 2016 10:08:22 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
address@hidden (Ludovic Courtès) skribis:

> "Jovany Leandro G.C" <address@hidden> 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’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]