From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IGNeD3BRUGOl5gAAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 21:35:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GJKHD3BRUGNMoQAA9RJhRA (envelope-from ) for ; Wed, 19 Oct 2022 21:35:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A53032C41F for ; Wed, 19 Oct 2022 21:35:11 +0200 (CEST) Received: from localhost ([::1]:38356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olEqM-000400-On for larch@yhetil.org; Wed, 19 Oct 2022 15:35:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olEpw-0003yq-54 for help-guix@gnu.org; Wed, 19 Oct 2022 15:34:45 -0400 Received: from koszko.org ([93.95.227.159]:46570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olEps-00021H-TL for help-guix@gnu.org; Wed, 19 Oct 2022 15:34:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tHJ0o+IvEoj34HFAZpnkIYK/Az0dz3v3LYqaworcNCE=; b=qN6vLsa3K93A4Q3nu6f1HgReZ4 GBT3JIzVDmGhP0m1YE3I0LptpG02oOt6B4KHwYFENhc+YHE3qe4/bSTFkWXNEnTLfMUbFL4pQxlK8 dC4q9a5mASNP8947A4GE4seC/JGf4Bah++dseB8RNqiXWicJ6lTYhwgOeRnvdwUg6tzcrFUeA9HTw +E9LI83Vy2n2tR7oxkEvc5IHKagF0QxC+Us26fCrv9KSOsMeN3JtJYaieBPwGWfI8SsfHdHj9F45Z dYVgIoDG1QMVfZdBlOE8Ze7wxXRlNHL7iHQ1Ibd6SRAhP2jxZg/mMCz31b1zMvQDMVkvzPJOXRRH0 x1Hf+CL3p7zDc86GVHK3/F5+ZVmaOLeAUOsUoO8FIGBgZKV5iYfoPUryd17K1dqZsbqV8s3J2Eky/ XSqOBB4UaQbDBjhEWxMJ/vrFBYklkF5p2RhOjcgOcNEONxzm3bI4doCFjKG4OpThB17gKQcCLqwf9 7MFvGggJ8kF1UU07HTtKn4F/YOryJgNmNhkoOy9uomSqFWlo/yU1J4iVggZjZeGnSf/aCK/XdZPFj yX9HwjpqoEs4SfobcfZQntYqJBckBInhv16eRTrZTP1j98UsXINfhU/0OSwTPe4zRxvOpRGQM8EXm epniGYVA4BPsSDtYF1Ch5ooGw7+Dw/2pBDj9a+WUI=; Received: from 77-252-46-225.static.ip.netia.com.pl ([77.252.46.225] helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olEpk-0000Ad-O2; Wed, 19 Oct 2022 21:34:32 +0200 Date: Wed, 19 Oct 2022 21:34:30 +0200 To: jordi Cc: help-guix Subject: Re: npm 'command not found' while node js is installed ? Message-ID: <20221019213430.0aac4464@koszkonutek-tmp.pl.eu.org> In-Reply-To: References: X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/AWODPoW8QeW5/LJ/xTL5.GZ"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" Reply-to: Wojtek Kosior From: Wojtek Kosior via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666208112; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tHJ0o+IvEoj34HFAZpnkIYK/Az0dz3v3LYqaworcNCE=; b=DuIRVgNwTT0zxvH+sqRA9UMO4vN/rwT7hKOx1CWV539uYtq0Sne+8EbYjqIYIG5iLheE/v tVDduaQsN7vddohAIdlJYxKsbh9pZvlX8zpiEHg1utJZXlT7BsYKMWUZaSy7sPS6fr7hCJ nDI8UhhOKYyIkpTo10WijuzAEGZZMBFd95ix1A9znoewiroEkQnfsYqeoT4851mzCwNtju J2zsapDNiW9AllO+Jq8Pr9f8kvxZtFp4qG4HQzAOxOyS7ZoZWC5IfHqhMGjoeAv70WtWVD EQjDyWX/baPvwEaTNzyvdLr8humy1tRjui2kN8jvHAvLeYZ9RmP89u6as5Op1A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666208112; a=rsa-sha256; cv=none; b=nqTrLPq29RhUW+Vjs+M+cEf6lP5PWGxrUWYTzwr4WfJ/a0OLO9g6pT96lEnK+4cyePfbUS tsvbC+lr4RjOkjbSYkLEW2dROIx4iivPQLAi+9PbemGM4fA93eDeX8mYjrTAlhVIwN14Dk 36fZPiw+nG4HabOWL0FUpqbWd1mD4euXeZwuuYztl2PvN8Ef0jmyUfmrDihjId+qhzcqCc gcBmWeEt6i5pUMQxLTgeJ+QfzkdpGKr2zKUwCN7G8RWdOCeMzkSxd2kJeoCkVx6NaQhNXO Cb8t1TYcilo/53BSwpLXe5V4boAylQHocgW2Trt5nS05GPj6wgUqJWpLiL79Zg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=qN6vLsa3; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.62 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=qN6vLsa3; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A53032C41F X-Spam-Score: -3.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: 82FcN3+tvqVJ --Sig_/AWODPoW8QeW5/LJ/xTL5.GZ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > Hi Guixers, >=20 > I installed nodejs package.=20 > When i go 'npm' in the shell i'm getting a 'command not found' error mess= age. >=20 > how to get 'npm' working ? what am i missing ? >=20 > thanks, thanks, thanks >=20 > Fenix Hi there, I suppose you're that either * you're using some Guix version that does not include the npm command in `node` package or * you don't have Guix profile's `bin/` directory in your PATH variable. The second seems more likely. I don't know if the first one is possible, actually (I have no clue about the history of `node` package). Try guix shell -C node -- npm --help to verify that npm is available in your current Guix version. You perhaps realize what this command does. Just in case - it runs `npm --help` in a container. If it works (i.e. npm's `--help` output is printed), it means your PATH variable did not contain the path to the profile with npm and that was the cause of your problem. Fix it by editing your shell initialization files. These are e.g. `~/.bashrc` and `~/.profile`. Or others depending on the shell you're using. Btw, you can verify that npm is indeed present in Guix by running guix time-machine --commit=3Da86979b41a49a8fcdaa887970ba594dbba701226 -= - shell -C node -- npm --help This will use a fixed version of Guix to run npm in a container. But this way neither incorrectly initialized PATH variable nor outdated `node` package will be able to cause you problems. The `time-machine` command might take some time to finish upon the first run... I'm giving it here as an interesting example - you shouldn't need `time-machine` for merely installing npm :) Please tell if you managed to fix the problem Good luck, Wojtek -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A Meet Krak=C3=B3w saints! #11: saint Jacek Odrow=C4=85=C5=BC Poznaj =C5=9Bwi=C4=99tych krakowskich! #11: =C5=9Bwi=C4=99ty Jacek Odrow= =C4=85=C5=BC https://pl.wikipedia.org/wiki/Jacek_Odrow=C4=85=C5=BC -- (sig_end) --Sig_/AWODPoW8QeW5/LJ/xTL5.GZ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY1BRRgAKCRBLxSIcWnn9 GuxAAP9ppU6wTTmkuNqKsDQkyn6q8/6e6jObj1tl0nVObaSW4QEA14jltbUAam9w USMbiREaqY1aMekklO1yVJGehWuneAU= =pnHk -----END PGP SIGNATURE----- --Sig_/AWODPoW8QeW5/LJ/xTL5.GZ--