Issue : env: can't execute 'node ': No such file or directory #1868
Unanswered
jangragourav
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is this the right form to ask the question/issue that I am having, If not sorry , please help me with the right form So I can ask there.
I am using alpine node image, I tried with 16.19.1-alpine3.16 , node:14.21-alpine , node:14.17.4-alpine version of it but I am not able to deploy the code. I am getting below issue.
The build folder is ready to be deployed.
You may serve it with a static server:
yarn global add serve
serve -s build
Find out more about deployment here:
bit.ly/CRA-deploy
env: can't execute 'node
': No such file or directory
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This is in my docker file
FROM node:16.19.1-alpine3.16 as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY ./package.json /app/
RUN yarn --silent
COPY . /app
RUN yarn build
It is failing on the last command (RUN yarn build)
Beta Was this translation helpful? Give feedback.
All reactions