Docker React App Build Error exit code: 254

Viewed 15

This is my dockerfile

FROM node:16
WORKDIR /app
COPY package.json /app/package.json
RUN npm install --legacy-peer-deps
COPY ./ ./
CMD ["npm", "run", "start"]

after run docker build, the message are shown,

#9 84.59 npm notice
#9 84.59 npm notice New patch version of npm available! 8.19.1 -> 8.19.2
#9 84.59 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.19.2>
#9 84.59 npm notice Run `npm install -g npm@8.19.2` to update!
#9 84.59 npm notice
#9 84.59 npm ERR! code ENOENT
#9 84.59 npm ERR! syscall spawn git
#9 84.59 npm ERR! path git
#9 84.60 npm ERR! errno -2
#9 84.60 npm ERR! enoent An unknown git error occurred
#9 84.60 npm ERR! enoent This is related to npm not being able to find a file.
#9 84.60 npm ERR! enoent
#9 84.60
#9 84.60 npm ERR! A complete log of this run can be found in:
#9 84.60 npm ERR!     /root/.npm/_logs/2022-09-19T08_23_55_537Z-debug-0.log

What is a problems?

0 Answers
Related