Does pnpm start
access the npm registry?
#9040
Unanswered
omihirofumi
asked this question in
Q&A
Replies: 1 comment 2 replies
-
If there is a "packageManager" field in your "package.json" file then pnpm (or corepack) will download the version of pnpm specified there. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When pushing a Docker image to Amazon ECR and deploying it to App Runner, I encounter the following error:
(It seems to fail at
CMD ["pnpm", "start"]
.)The script I am using is:
"start": "remix-serve ./build/bin/index.js"
When running the container locally with
docker run
, I do not get this error.When executing the script directly, it works fine:
CMD ["node_modules/.bin/remix-serve", "./build/bin/index.js"]
So, I suspect that
pnpm start
is trying to fetch dependencies from the npm registry.here is the Dockerfile
Beta Was this translation helpful? Give feedback.
All reactions