[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to work with npm from guix shell
From: |
Ekaitz Zarraga |
Subject: |
Re: How to work with npm from guix shell |
Date: |
Fri, 18 Feb 2022 12:37:51 +0000 |
Hi
> Hello,
>
> I try to install the community server of the solid project using the
> following documentation in a guix shell session.
>
> https://solidproject.org//self-hosting/css
>
> Unfortunatelly I got the following error during the execution of 'npm install
> -g @solid/community-server'
This command installs stuff globally, which tries to access system's
directories and that's what's giving you the error (the store is immutable).
What I suggest is to remove the -g so the packages are going to be installed in
the current folder under node_modules, and you'll be able to run them by their
path:
./node_modules/community-server/bin/whatever
You can also add that to the PATH and simplify some things.
That's what I do.
But there might be other better options, like setting where should npm install
the packages globally? I don't know about that.
Hope that helps