ChatGPT-wechat-bot icon indicating copy to clipboard operation
ChatGPT-wechat-bot copied to clipboard

Docker image构建失败: Missing script: "puppet-install"

Open livevx opened this issue 2 years ago • 7 comments

使用Dockerfile build image时出现错误: Missing script: "puppet-install",请问如何解决?

详细log:

STEP 1/10: FROM node:16-slim
STEP 2/10: WORKDIR /code
--> Using cache fe76d6bb5cf91f40a06219189b21c96bd2914101bafc3be9590933d994056022
--> fe76d6bb5cf
STEP 3/10: ADD package.json package-lock.json /code/
--> Using cache ae6fb6a2bc55c3fb1dc7edc6c44197e5d013b3d0c8db26f2f46d13a94530ff27
--> ae6fb6a2bc5
STEP 4/10: RUN npm config set registry https://registry.npm.taobao.org     && npm config set disturl https://npm.taobao.org/dist     && npm config set puppeteer_download_host https://npm.taobao.org/mirrors
--> Using cache 4d27631c5e807434f5324fe46597f7706c675f4fca6b27de8a6e3f5e4fdc92fb
--> 4d27631c5e8
STEP 5/10: RUN  npm install      && npm run puppet-install
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '>=18' },
npm WARN EBADENGINE   current: { node: 'v16.19.0', npm: '8.19.3' }
npm WARN EBADENGINE }
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: < 18.1.0 is no longer supported

> [email protected] prepare
> husky install


added 745 packages in 24s

1 package is looking for funding
  run `npm fund` for details
npm notice 
npm notice New major version of npm available! 8.19.3 -> 9.4.1
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.4.1>
npm notice Run `npm install -g [email protected]` to update!
npm notice 
npm ERR! Missing script: "puppet-install"
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-02-04T16_30_49_122Z-debug-0.log
Error: building at STEP "RUN npm install      && npm run puppet-install": while running runtime: exit status 1

livevx avatar Feb 04 '23 16:02 livevx

一样的问题

sun793188471 avatar Feb 06 '23 03:02 sun793188471

一样的问题,我用的Railway

Hiusam avatar Feb 07 '23 13:02 Hiusam

Same problem

NEPDream avatar Feb 08 '23 02:02 NEPDream

找到解决方案了吗

DragonGo avatar Feb 08 '23 03:02 DragonGo

+1

shanyj avatar Feb 08 '23 13:02 shanyj

+1

won-i avatar Feb 13 '23 08:02 won-i

在railway部署成功的没?试了好几次都不行

yqty avatar Feb 24 '23 12:02 yqty