unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Josh Marshall <Josh.Marshall@jax.org>
To: Vivien Kraus <vivien@planete-kraus.eu>, help-guix <help-guix@gnu.org>
Subject: RE: [EXTERNAL]Re: How should I be running `npm install …`?
Date: Thu, 30 Apr 2020 15:13:57 +0000	[thread overview]
Message-ID: <BL0PR06MB4673608876617F10D08A1EE1E9AA0@BL0PR06MB4673.namprd06.prod.outlook.com> (raw)
In-Reply-To: <74bba214839f2e4eeae00c641549e00f3d7b40e8.camel@planete-kraus.eu>

This gets me what I need – thanks!

________________________________
From: Vivien Kraus <vivien@planete-kraus.eu>
Sent: Thursday, April 30, 2020 11:06:15 AM
To: Josh Marshall <Josh.Marshall@jax.org>; help-guix <help-guix@gnu.org>
Subject: [EXTERNAL]Re: How should I be running `npm install …`?

Hello!

Le jeudi 30 avril 2020 à 14:59 +0000, Josh Marshall a écrit :
> Hello all,
>
> The is my work email, I’m usually on IRC as “anadon”.  My laptop
> broke, so please humor the account change.
>
> Following the guide at
> https://medium.com/jeremy-keeshin/hello-world-for-javascript-with-npm-modules-in-the-browser-6020f82d1072
> , I’m trying to run `npm install -g browserify` with the output
> below.  This is something others have certainly run into, but a quick
> google search does not turn up any useful results.  How should I be
> doing this?

I am a mere guix user, so you may want to have another answer.

You cannot install anything globally with NPM in guix, because NPM is
installed in a read-only location (/gnu/store/).  This is required for
guix to work correctly.

You can use this trick:
https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md

Basically, it tells NPM to install to your home directory.  So that it
is still installed in a central location, but this location is read-
write.

Vivien

---

The information in this email, including attachments, may be confidential and is intended solely for the addressee(s). If you believe you received this email by mistake, please notify the sender by return email as soon as possible.

  reply	other threads:[~2020-04-30 15:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30 14:59 How should I be running `npm install …`? Josh Marshall
2020-04-30 15:06 ` Vivien Kraus
2020-04-30 15:13   ` Josh Marshall [this message]
2020-05-02  7:40   ` Dmitry Alexandrov
2020-06-16 15:20     ` Gary Johnson
2020-06-16 21:06       ` Dmitry Alexandrov
2020-06-17  4:09       ` Dejan Ranisavljevic
2020-06-17 14:58         ` [EXTERNAL]Re: " Josh Marshall
2020-04-30 15:18 ` 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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BL0PR06MB4673608876617F10D08A1EE1E9AA0@BL0PR06MB4673.namprd06.prod.outlook.com \
    --to=josh.marshall@jax.org \
    --cc=help-guix@gnu.org \
    --cc=vivien@planete-kraus.eu \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).