all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* npm global prefix needs to be a writeable directory
@ 2020-11-25 23:28 Ryan Prior
  2020-11-26  6:35 ` Jelle Licht
  0 siblings, 1 reply; 4+ messages in thread
From: Ryan Prior @ 2020-11-25 23:28 UTC (permalink / raw)
  To: Development of GNU Guix and the GNU System distribution

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 2889 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-26  8:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-25 23:28 npm global prefix needs to be a writeable directory Ryan Prior
2020-11-26  6:35 ` Jelle Licht
2020-11-26  7:16   ` Ryan Prior
2020-11-26  8:28     ` Jelle Licht

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.