timarney / react-app-rewired

Override create-react-app webpack configs without ejecting
MIT License
9.77k stars 425 forks source link

/bin/sh: react-app-rewired: not found error Command failed with exit code 127. #570

Closed siarheiSiniauski closed 2 years ago

siarheiSiniauski commented 2 years ago

Hello everyone. I ran into a problem when working with react-app-rewired in a docker container. During the build, it returns an error react-app-rewired build /bin/sh: react-app-rewired: not found error Command failed with exit code 127. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. The command '/bin/sh -c yarn build' returned a non-zero code: 127

`FROM node:12-alpine AS BUILD_IMAGE

RUN apk update && apk add curl bash && rm -rf /var/cache/apk/*

RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin

WORKDIR /usr/src/app

COPY package.json yarn.lock ./

RUN yarn --silent --prod --frozen-lockfile

COPY . ./

RUN yarn build

RUN npm prune --production

RUN /usr/local/bin/node-prune

FROM node:12-alpine

WORKDIR /usr/src/app

COPY --from=BUILD_IMAGE /usr/src/app/server ./server COPY --from=BUILD_IMAGE /usr/src/app/package.json ./ COPY --from=BUILD_IMAGE /usr/src/app/build ./build COPY --from=BUILD_IMAGE /usr/src/app/node_modules ./node_modules

EXPOSE 9000

CMD ["yarn", "release"] `

timarney commented 2 years ago

Closing --- this no activity. Can re-open as needed.

jonnylink commented 11 months ago

This happens seemingly at random even today. I'm in the process of discontinuing the use of this for that reason.

camillalo commented 11 months ago

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。