部署容器时出现以下错误
#15 1.066 npm ERR! node-pre-gyp not accessible from fsevents
#15 1.076
#15 1.076 npm ERR! A complete log of this run can be found in:
#15 1.076 npm ERR! /root/.npm/_logs/2022-01-11T11_40_13_120Z-debug.log
------
executor failed running [/bin/sh -c npm ci]: exit code: 1
以下是我的dockerfile
WORKDIR /app
COPY package*.json ./
COPY .npmrc .npmrc
RUN npm set progress=false
RUN npm ci
RUN npm audit
COPY . .
RUN npm run build
FROM nginx
RUN mkdir /app
COPY --from=0 /app/dist /app
COPY ./__docker_content_start.sh /start.sh
RUN chmod x /start.sh
COPY nginx.conf /etc/nginx/nginx.conf
CMD /start.sh
我无法找到解决方案。任何帮助表示感谢
uj5u.com热心网友回复:
node-pre-gyp
作为依赖添加到您的package.json
npm i --save node-pre-gyp
0 评论