Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vitaliy-guliy opened this issue May 7, 2024 · 2 comments
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.

Comments

@vitaliy-guliy
Copy link
Contributor

vitaliy-guliy commented May 7, 2024

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 vitaliy-guliy added kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs. labels May 7, 2024
@AObuchow
Copy link

AObuchow commented May 9, 2024

@vitaliy-guliy this seems to be a duplicate of #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 #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 #21742 and continue the discussion there.

@ibuziuk
Copy link
Member

ibuziuk commented May 15, 2024

Closing in favour of #21742

@ibuziuk ibuziuk closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants