help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web development on Guix: nodejs, npm and all that


From: Chris Marusich
Subject: Re: Web development on Guix: nodejs, npm and all that
Date: Mon, 10 Jan 2022 10:15:29 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hi,

"Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:

> Hi t,
>
> t@fullmeta.me writes:
>> Do people do web-dev on Guix System? I need to dive back into the
>> whole Node.js NPM ecosystem - something I've not touched for some 
>> years and I'm wondering how people go about e.g. installing NPM
>> packages on Guix.
>
>> So, how do people program for the Web, Node on Guix. Does =npm
>> install= which defaults to local installation work well enough for 
>> most packages? An outline of what to expect and known problems and
>> workarounds would be very useful.
>
> I do webdev on Guix, but I work in a team where I’m currently the only
> Guix user, so my usage must work with changes we do.
>
> I used to have a setup that used the local guix-installed npm (
> https://www.draketo.de/software/guix-work#npm ), but that often broke,
> so I switched to copying the
>
> node_modules/npm/bin/npm-cli.js
>
> script from our build environment to
>
> ~/.local/bin/npm
>
> (which I have on my path)
> with #!/usr/bin/env node as hashbang.
>
> That now actually works pretty well, and it uses the node from Guix.
>
> Best wishes,
> Arne

Just to be clear: that means you're using node to manage all the
dependencies, not Guix, right?  Not that there's anything wrong with
that.  I'm just curious, since watching on the sidelines, I've often
heard that NPM is difficult to package in Guix.

-- 
Chris

PGP: https://savannah.gnu.org/people/viewgpg.php?user_id=106836

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]