From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 7X0iJ1lnv18OfgAA0tVLHw (envelope-from ) for ; Thu, 26 Nov 2020 08:29:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WDxnIllnv1/AOAAA1q6Kng (envelope-from ) for ; Thu, 26 Nov 2020 08:29:13 +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 0CE16940546 for ; Thu, 26 Nov 2020 08:29:12 +0000 (UTC) Received: from localhost ([::1]:35788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiCeN-0007Uf-PD for larch@yhetil.org; Thu, 26 Nov 2020 03:29:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiCeE-0007UW-H0 for guix-devel@gnu.org; Thu, 26 Nov 2020 03:29:02 -0500 Received: from mail1.fsfe.org ([2001:aa8:ffed:f5f3::151]:40732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiCeC-0000GO-JB for guix-devel@gnu.org; Thu, 26 Nov 2020 03:29:02 -0500 From: Jelle Licht To: Ryan Prior , Development of GNU Guix and the GNU System distribution Subject: Re: npm global prefix needs to be a writeable directory In-Reply-To: <9fb5171919bbe26738b4561e579f6c9f6a23cde4@hey.com> References: <9fb5171919bbe26738b4561e579f6c9f6a23cde4@hey.com> Date: Thu, 26 Nov 2020 09:28:57 +0100 Message-ID: <86d000cyie.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:aa8:ffed:f5f3::151; envelope-from=jlicht@fsfe.org; helo=mail1.fsfe.org X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: inc X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=fsfe.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.91 X-TUID: JGp6a32DDi5x Ryan Prior writes: > On November 26, 2020, Jelle Licht wrote: >> On other distros it defaults to a location that is not writable by >> normal users either; > > Indeed I can confirm that Ubuntu node also has this problem. > >> Another way folks solved this problem has been using "nvm" which in >> practice boiled down to [setting a >> custom global prefix, just managed by nvm now]. > > I think Guix should work more like nvm than like other distros in this > case. If this is something we could handle automatically per-profile, > then that gives us the opportunity to do the right thing and save the > user some hassle. As long as we don't change existing behaviour by ignoring custom global prefixes explicitly requested by the user, this seems fine to me. Do other language-specific package managers packaged in guix not run into similar issues? - Jelle