It is pot possible to install node packages globally (EACCES: permission denied, mkdir '/usr/local/lib/node_modules')
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
- Create any node-based workspace
- Open a terminal and install the package
npm install -g vsce
Expected behavior
The package must be installed.
Runtime
OpenShift
Screenshots
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 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.
Closing in favour of https://github.com/eclipse-che/che/issues/21742