Open KingKunn opened 2 years ago
Having this issue as well. npm command returning nothing. Downgrade to different node version then only can uses npm. Do you have any solution?
This is most likely related to https://github.com/nodejs/docker-node/issues/1734 and https://github.com/npm/cli/issues/4996
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