all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Martin Castillo <castilma@uni-bremen.de>
To: help-guix@gnu.org
Subject: Re: How to work with npm from guix shell
Date: Fri, 18 Feb 2022 13:43:21 +0100	[thread overview]
Message-ID: <4d0f9dd1-7ca1-94e2-6897-d8abb0d43517@uni-bremen.de> (raw)
In-Reply-To: <9pktpNAPpnoSpUh22Bjksq9DtauCBhUvlLFcaOQOVO28tM62Y1Dj7lRw_QC2x2AI8sBLEeEzUub6m3Mq2o5bUVgcgHqXSE4-UelN2J52UAk=@protonmail.com>

Hi,

Am 18.02.22 um 13:27 schrieb Roland Everaert via:
> Unfortunatelly I got the following error during the execution of 'npm install -g @solid/community-server'

The -g flag tells npm that you want to install the package globaly, 
which on guix, is inside the read-only gnu store.
You can either just omit -g to install the packages in the current 
directory, or use 
<https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md>, 
which was proposed here: 
<https://yhetil.org/guix-user/87zhatypbh.fsf@jlicht.xyz/t/>

> 
> I am totally illiterate about node.js and its ecosystem. So, how to setup a proper environment for running node.js application with guix shell or guix in general?

Guix packages packages from other language specific packagers, like pip. 
But I don't think we have node modules tracked by guix.
AFAIK, the above solution is best practice.

Someone else might know more.

Martin


      parent reply	other threads:[~2022-02-18 12:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-18 12:27 How to work with npm from guix shell Roland Everaert via
2022-02-18 12:37 ` Ekaitz Zarraga
2022-02-22 12:55   ` Roland Everaert
2022-02-18 12:43 ` Martin Castillo [this message]

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=4d0f9dd1-7ca1-94e2-6897-d8abb0d43517@uni-bremen.de \
    --to=castilma@uni-bremen.de \
    --cc=help-guix@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.