简体   繁体   English

无法从 fsevents 访问 node-pre-gyp

[英]node-pre-gyp not accessible from fsevents

I am getting the following error when deploying my container部署容器时出现以下错误

#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

following is my dockerfile以下是我的 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

I am unable to find a solution for this.我无法找到解决方案。 Any help appreciated Thanks任何帮助表示感谢

Add node-pre-gyp as a dependency to your package.json添加node-pre-gyp gyp 作为package.json的依赖项

npm i --save node-pre-gyp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM