che icon indicating copy to clipboard operation
che copied to clipboard

It is pot possible to install node packages globally (EACCES: permission denied, mkdir '/usr/local/lib/node_modules')

Open vitaliy-guliy opened this issue 1 year ago • 1 comments

Describe the bug

I am not able to install node package globally because of permission denied (see the screenshot). It is reproducible on both dogfooding and sandbox instances.

Steps to reproduce

  1. Create any node-based workspace
  2. Open a terminal and install the package
npm install -g vsce

Expected behavior

The package must be installed.

Runtime

OpenShift

Screenshots

Screenshot from 2024-05-07 13-10-01

Installation method

other (please specify in additional context)

Environment

Dev Sandbox (workspaces.openshift.com)

Eclipse Che Logs

No response

Additional context

No response

vitaliy-guliy avatar May 07 '24 10:05 vitaliy-guliy

@vitaliy-guliy this seems to be a duplicate of https://github.com/eclipse-che/che/issues/21742

Is this issue a new priority? What is the use case -- for multi-project workspaces? This should be fixable by the suggestions left in https://github.com/eclipse-che/che/issues/21742, but we should decide whether we want the global node modules to persist or be ephemeral.

Let's perhaps close this issue in favour of https://github.com/eclipse-che/che/issues/21742 and continue the discussion there.

AObuchow avatar May 09 '24 22:05 AObuchow

Closing in favour of https://github.com/eclipse-che/che/issues/21742

ibuziuk avatar May 15 '24 15:05 ibuziuk