From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GDQlGyX66V4qHgAA0tVLHw (envelope-from ) for ; Wed, 17 Jun 2020 11:10:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wMPiFiX66V6cBAAAbx9fmQ (envelope-from ) for ; Wed, 17 Jun 2020 11:10:29 +0000 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 75A599400E1 for ; Wed, 17 Jun 2020 11:10:28 +0000 (UTC) Received: from localhost ([::1]:53002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlVxa-0003DR-9h for larch@yhetil.org; Wed, 17 Jun 2020 07:10:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlPOu-0000jl-Qk for help-guix@gnu.org; Wed, 17 Jun 2020 00:10:12 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:35586) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlPOs-0005aA-Cc for help-guix@gnu.org; Wed, 17 Jun 2020 00:10:12 -0400 Received: by mail-ed1-x52e.google.com with SMTP id e12so862448eds.2 for ; Tue, 16 Jun 2020 21:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ranisavljevic-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8sgslDpLW5NKBIl27TE/Em9HXjiZDdyOF/bAvFkdnIY=; b=bMVOB4lJ/yPjORrB55yvQnNRzSWwAW4ZQpmcbTP/qdBRXk6DMV1+TPE/b01Ud4U+08 VOKuawPiq6GTWRoB6YHqo7WkGXLWra9NBUFu1A2sL6cIz/z8iT6sU25xCZUau/s2B8vu kEw0a1TWB5guhF3LFf5QKrQvNbThHDy381RHjAlwKioYwEOtUPou+MVL8TPP5iwOrwSS eRZIFXZpKkPyg+msDkSTlJEKsXFCzRm6OEftDI+95r0M6gWwpFkFR44bGt3rZx6zRzYj s8tBuArqXIUmWD91NnbDEX8MVI30LQQejU26pj/0+ULZJjyw7foAf19Kbw6gqhNL9p7S NsDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8sgslDpLW5NKBIl27TE/Em9HXjiZDdyOF/bAvFkdnIY=; b=rUODQVmdfupE84ckwRY4GfWbpEfiAsZcuYbBnrM7SfIy9YnR7wVSnzIGlWHSur+YEh 1pyu4Nl+7aTF+00RyKUBW4/4M1vpCQp2EixJxWcxGWZJ0Z5PZoJTRBpims0YRytUKYZq yUAlajrQBILRpbPJtImE1zWrl30ikW2xdioVqsizguI3CXhM1N8KM/s4LGM0JB3xh4eO pMBalfjNbtFFulKl218KPuIg4MhOxcbt64TjoqLdl8qbFxe2PE0r58EqfplOK0fyAadZ jZ7WzqZ+2x4QtrYwbWzPXXNkhlsfhOxf5BxMBtJY6OiklKRe3WFXqTuPvb7nUuvsBePU zUfQ== X-Gm-Message-State: AOAM531aW/Og2fEUtrg1wNtltyi/Tg9CtRi/v/o3Qwhx6HxriF+9J5yl qNBZC5CZGoCkzbZ1W48arxxOzGrMNjTj5/JqvfnPCg== X-Google-Smtp-Source: ABdhPJyR7iJAxytw5C0SdwVDoLY8/+cFLL0dujGTl54QXZMyNfkJQmqeoMNiqt1qLk/GOTc/sFF/Y+4snTzQDu/72JE= X-Received: by 2002:a05:6402:17e6:: with SMTP id t6mr5266336edy.243.1592367008036; Tue, 16 Jun 2020 21:10:08 -0700 (PDT) MIME-Version: 1.0 References: <74bba214839f2e4eeae00c641549e00f3d7b40e8.camel@planete-kraus.eu> <87r1ufghpk.fsf@disroot.org> In-Reply-To: <87r1ufghpk.fsf@disroot.org> From: Dejan Ranisavljevic Date: Wed, 17 Jun 2020 06:09:57 +0200 Message-ID: Subject: =?UTF-8?Q?Re=3A_How_should_I_be_running_=60npm_install_=E2=80=A6=60=3F?= To: Gary Johnson Received-SPF: none client-ip=2a00:1450:4864:20::52e; envelope-from=dejan@ranisavljevic.com; helo=mail-ed1-x52e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Wed, 17 Jun 2020 07:10:16 -0400 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dmitry Alexandrov <321942@gmail.com>, Josh Marshall , Vivien Kraus , help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=ranisavljevic-com.20150623.gappssmtp.com header.s=20150623 header.b=bMVOB4lJ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.99 X-TUID: as3xKBYJh2LG To use different directory for global packages, you have to create ~/.npmrc dotfile with: prefix=3D~/.npm Once you have that you should be able to do npm i -g, and package would be installed in ~/.npm Also don't forget to add ~/.npm/bin in your PATH: export PATH=3D"$HOME/.npm/bin:$PATH" Hope this helps. Best, Dejan On Tue, 16 Jun 2020 at 17:21, Gary Johnson wrote= : > In Guix, all system-level packages and configuration files are created > by the package manager under /gnu/store. The /usr directory is empty on > a Guix system. > > ~Gary > > Dmitry Alexandrov <321942@gmail.com> writes: > > > Vivien Kraus wrote: > >> Le jeudi 30 avril 2020 =C3=A0 14:59 +0000, Josh Marshall a =C3=A9crit = : > >>> I=E2=80=99m trying to run `npm install -g browserify` with the output= below. > > > >>> npm ERR! path > /gnu/store/39zkw3a8lxkxs7rmx4238959zc368075-node-10.19.0/lib/node_modules > >> > >> I am a mere guix user, so you may want to have another answer. > > > > I am not even a Guix (the SD) user, but this made me curious. > > > >> You cannot install anything globally with NPM in guix because NPM is > installed in a read-only location (/gnu/store/) > > > > So? /usr/ in traditional GNU distributions might be read-only as well, > but it does not impede npm(1) or pip(1) or whatever install things > system-wide (given that operator utilize his superuser powers, of course)= , > as there are plenty other hierarchies available. > > > > Why is npm in Guix built with default =E2=80=98prefix=E2=80=99=C2=B9 (m= eans, for --global > actions) set to package directory under /gnu/store/ instead of, say, > /usr/local? > > > > --- > > =C2=B9 > > $ npm config get prefix > > > -- > GPG Key ID: 7BC158ED > Use `gpg --search-keys lambdatronic' to find me > Protect yourself from surveillance: https://emailselfdefense.fsf.org > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > () ascii ribbon campaign - against html e-mail > /\ www.asciiribbon.org - against proprietary attachments > > Please avoid sending me MS-Office attachments. > See http://www.gnu.org/philosophy/no-word-attachments.html > >