From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jovany Leandro G.C" Subject: bug#23744: guix: npm don't run Date: Fri, 10 Jun 2016 08:31:07 -0500 Message-ID: <20160610083107.6ce9daa9@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBRNe-0005fs-Hi for bug-guix@gnu.org; Fri, 10 Jun 2016 14:42:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBRNa-0005q9-Aj for bug-guix@gnu.org; Fri, 10 Jun 2016 14:42:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBRNa-0005q4-6p for bug-guix@gnu.org; Fri, 10 Jun 2016 14:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bBRNa-0008D5-2p for bug-guix@gnu.org; Fri, 10 Jun 2016 14:42:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBRDJ-0001xv-6r for bug-guix@gnu.org; Fri, 10 Jun 2016 14:31:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBRDF-0003An-0G for bug-guix@gnu.org; Fri, 10 Jun 2016 14:31:24 -0400 Received: from mx1.riseup.net ([198.252.153.129]:57729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBRDE-0003Ag-PH for bug-guix@gnu.org; Fri, 10 Jun 2016 14:31:20 -0400 Received: from cotinga.riseup.net (unknown [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 8EA931A2AA0 for ; Fri, 10 Jun 2016 18:31:19 +0000 (UTC) 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: 23744@debbugs.gnu.org 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. (/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,