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 QMV+F8fovl9GQgAA0tVLHw (envelope-from ) for ; Wed, 25 Nov 2020 23:29:11 +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 iApLE8fovl/8IQAAbx9fmQ (envelope-from ) for ; Wed, 25 Nov 2020 23:29:11 +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 140BD9402D6 for ; Wed, 25 Nov 2020 23:29:11 +0000 (UTC) Received: from localhost ([::1]:47500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ki4Dm-00022I-1y for larch@yhetil.org; Wed, 25 Nov 2020 18:29:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ki4Dd-00022C-Is for guix-devel@gnu.org; Wed, 25 Nov 2020 18:29:01 -0500 Received: from 02c.relay.hey.com ([204.62.114.230]:34465) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ki4DY-00086H-QR for guix-devel@gnu.org; Wed, 25 Nov 2020 18:29:01 -0500 Received: from hey.com (bigip-vip-new.rw-ash-int.37signals.com [10.20.0.24]) by 02.relay.hey.com (Postfix) with ESMTP id 727C8160CEA for ; Wed, 25 Nov 2020 23:28:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hey.com; s=heymail; t=1606346935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LinePqeCpt/GkLnQVjDBpnAakpqDHnyIDRWecElTniE=; b=GHSxhtK4BvFfgAVF7obeylsr+6KbnSMdp2ffuJ6R+fMFercTGCphwQmXq+kWUtsS828zZm xgDc3atzyniW0H37ZuqtXPDbWGPVdLfj2+NadvnheuHDR/Vs6uYbM4AAFYOfTOooe6V4ZJ GPBSyLbbHB1Ica9NtcciJkT1VSUexghaQ1R3GGAQbRvfR5AU9EQnagu6FQhkYxDun+NYyJ 1JSd/Ht/a/BCWFvEFoMOwiD+TcdS+SVEWZGoGP8vC8h5zMstDHquGnx9EXdh53htzg46y/ 6ZHukYHsHTAFjPChKYYTsaNcbUZiJ+O8FTv+ytDrhnYkAjqY+x25+yVuireD+Q== Date: Wed, 25 Nov 2020 23:28:54 +0000 From: Ryan Prior To: Development of GNU Guix and the GNU System distribution Message-ID: Subject: npm global prefix needs to be a writeable directory Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5fbee8b73edb5_1e942dc82439"; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=204.62.114.230; envelope-from=ryanprior@hey.com; helo=02c.relay.hey.com 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-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-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hey.com header.s=heymail header.b=GHSxhtK4; dmarc=pass (policy=quarantine) header.from=hey.com; 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: -1.21 X-TUID: 5V31GFSnS7J3 ----==_mimepart_5fbee8b73edb5_1e942dc82439 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi folks! I stumbled across an issue with the node package today and wanted to send a report before I forget. npm assumes that the global prefix is a writeable folder. Operations like `npm link` will fail if it isn't. Right now our node package doesn't set a prefix, so it defaults to the package's directory in the store, which isn't good. Maybe the solution is to select a folder inside the user's Guix profile (or perhaps in their XDG_CACHE_HOME, if any) and set that explicitly as the node global prefix using a profile hook. In my case, I ran `npm config set prefix /home/ryan/.cache/npm` as a workaround. ----==_mimepart_5fbee8b73edb5_1e942dc82439 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi folks! I stumbled across an issue with the node package today a= nd wanted to send a report before I forget.

npm assumes that the g= lobal prefix is a writeable folder. Operations like `npm link` will fail = if it isn't. Right now our node package doesn't set a prefix, so it defau= lts to the package's directory in the store, which isn't good.

May= be the solution is to select a folder inside the user's Guix profile (or = perhaps in their XDG_CACHE_HOME, if any) and set that explicitly as the n= ode global prefix using a profile hook.

In my case, I ran `npm con= fig set prefix /home/ryan/.cache/npm` as a workaround.
----==_mimepart_5fbee8b73edb5_1e942dc82439--