You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm can be executed on OKD/Openshift without root permissions
Current Behavior
Built Node16 application can't be started on OKD/Openshift platform, as npm binary or related folder/file permissions do not have enough privileges?
Possible Solution
Using older node:16-alpine, node:16-bullseye-slim images, where npm version is 8.5.5.
Remove NPM and start application via node with -> package.json start command
Steps to Reproduce
Using latest node:16-alpine, node:16-bullseye-slim images to build and run node application.
Application runs on local docker container, but when deploying to OKD/Openshift... then container will crash-loop as npm command is not working properly - no output - blank row
will it work on npm 9.5.1, i'm having issue with cache directory
The issue arises because npm is trying to use /.npm as its cache directory, which typically requires root permissions. I'm try to create a react app on openshift, but after deployment when I rsh into my container shell and execute the npm start command i'm getting the error /.npm EACCESS. How to solve it .
The npm cache directory is set to a location where the user has appropriate permissions, avoiding permission issues.
npm: 9.5.1
Node.js: 18.16.0
OS Name: ubuntu 22.04 #7572
Environment
Expected Behavior
npm can be executed on OKD/Openshift without root permissions
Current Behavior
Built Node16 application can't be started on OKD/Openshift platform, as npm binary or related folder/file permissions do not have enough privileges?
Possible Solution
Steps to Reproduce
Using latest node:16-alpine, node:16-bullseye-slim images to build and run node application.
Application runs on local docker container, but when deploying to OKD/Openshift... then container will crash-loop as npm command is not working properly - no output - blank row
Output in Container:
npm command works on OKD4 when granting root permissions to the container, but this can't be used for security reasons.
Additional Information
Probably this is not my platform/image issue
The text was updated successfully, but these errors were encountered: