From: Ryan Prior <ryanprior@hey.com>
To: Development of GNU Guix and the GNU System distribution
<guix-devel@gnu.org>
Subject: npm global prefix needs to be a writeable directory
Date: Wed, 25 Nov 2020 23:28:54 +0000 [thread overview]
Message-ID: <edbcc5930e5ab392e92ce1ffd0570e0861441fec@hey.com> (raw)
[-- 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 --]
next reply other threads:[~2020-11-25 23:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-25 23:28 Ryan Prior [this message]
2020-11-26 6:35 ` npm global prefix needs to be a writeable directory Jelle Licht
2020-11-26 7:16 ` Ryan Prior
2020-11-26 8:28 ` Jelle Licht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=edbcc5930e5ab392e92ce1ffd0570e0861441fec@hey.com \
--to=ryanprior@hey.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.