help-guix
[Top][All Lists]
Advanced

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

How to work with npm from guix shell


From: Roland Everaert
Subject: How to work with npm from guix shell
Date: Fri, 18 Feb 2022 12:27:13 +0000

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'

----------------------------------
npm WARN checkPermissions Missing write access to 
/gnu/store/5h6v8gkyzc4xlvl96qp4apmjxar5br76-node-14.18.3/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path 
/gnu/store/5h6v8gkyzc4xlvl96qp4apmjxar5br76-node-14.18.3/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access 
'/gnu/store/5h6v8gkyzc4xlvl96qp4apmjxar5br76-node-14.18.3/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access 
'/gnu/store/5h6v8gkyzc4xlvl96qp4apmjxar5br76-node-14.18.3/lib/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: 
'/gnu/store/5h6v8gkyzc4xlvl96qp4apmjxar5br76-node-14.18.3/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as 
the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check 
the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! 
/home/roland/.npm/_logs/2022-02-18T12_10_31_439Z-debug.log-------------------------------------

Command use to start the guix shell session.

guix shell -CN node

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?

I am running the application in a guix shell session for testing purposes.

Roland Everaert
---
Use the F.O.S.S., Luke

Sent with [ProtonMail](https://protonmail.com/) Secure Email.

reply via email to

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