unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jovany Leandro G.C" <bit4bit@riseup.net>
To: 23744@debbugs.gnu.org
Subject: bug#23744: guix: npm don't run
Date: Fri, 10 Jun 2016 08:31:07 -0500	[thread overview]
Message-ID: <20160610083107.6ce9daa9@riseup.net> (raw)

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@beta** and run **node
~/node_modules/ionic/bin/ionic**
and works :)

I hope to be helpful
thanks,

             reply	other threads:[~2016-06-10 18:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-10 13:31 Jovany Leandro G.C [this message]
2016-06-12 20:30 ` bug#23744: guix: npm don't run Ludovic Courtès
2016-06-29  8:08   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160610083107.6ce9daa9@riseup.net \
    --to=bit4bit@riseup.net \
    --cc=23744@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).