收藏
回答

miniprogram-ci运行报错?

script returned exit code 1

[2024-05-31 11:57:34] + node ./upload.js -p=**** --appid=wxc91ea24a72e5d0b0

[2024-05-31 11:57:35] node:internal/modules/cjs/loader:988

[2024-05-31 11:57:35]   throw err;

[2024-05-31 11:57:35]   ^

[2024-05-31 11:57:35] 

[2024-05-31 11:57:35] Error: Cannot find module './utils/handleerror/handleerror'

[2024-05-31 11:57:35] Require stack:

[2024-05-31 11:57:35] - /root/workspace/node_modules/miniprogram-ci/dist/modules/fullcompiler/getallwmltohtmlmap.js

[2024-05-31 11:57:35] - /root/workspace/node_modules/miniprogram-ci/dist/modules/fullcompiler/index.js

[2024-05-31 11:57:35] - /root/workspace/node_modules/miniprogram-ci/dist/modules/index.js

[2024-05-31 11:57:35] - /root/workspace/node_modules/miniprogram-ci/dist/index.js

[2024-05-31 11:57:35] - /root/workspace/upload.js

[2024-05-31 11:57:35]     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)

[2024-05-31 11:57:35]     at Function.Module._load (node:internal/modules/cjs/loader:833:27)

[2024-05-31 11:57:35]     at Module.require (node:internal/modules/cjs/loader:1057:19)

[2024-05-31 11:57:35]     at require (node:internal/modules/cjs/helpers:103:18)

[2024-05-31 11:57:35]     at Object.<anonymous> (/root/workspace/node_modules/miniprogram-ci/dist/modules/fullcompiler/getallwmltohtmlmap.js:1:190)

[2024-05-31 11:57:35]     at Module._compile (node:internal/modules/cjs/loader:1155:14)

[2024-05-31 11:57:35]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)

[2024-05-31 11:57:35]     at Module.load (node:internal/modules/cjs/loader:1033:32)

[2024-05-31 11:57:35]     at Function.Module._load (node:internal/modules/cjs/loader:868:12)

[2024-05-31 11:57:35]     at Module.require (node:internal/modules/cjs/loader:1057:19) {

[2024-05-31 11:57:35]   code: 'MODULE_NOT_FOUND',

[2024-05-31 11:57:35]   requireStack: [

[2024-05-31 11:57:35]     '/root/workspace/node_modules/miniprogram-ci/dist/modules/fullcompiler/getallwmltohtmlmap.js',

[2024-05-31 11:57:35]     '/root/workspace/node_modules/miniprogram-ci/dist/modules/fullcompiler/index.js',

[2024-05-31 11:57:35]     '/root/workspace/node_modules/miniprogram-ci/dist/modules/index.js',

[2024-05-31 11:57:35]     '/root/workspace/node_modules/miniprogram-ci/dist/index.js',

[2024-05-31 11:57:35]     '/root/workspace/upload.js'

[2024-05-31 11:57:35]   ]

[2024-05-31 11:57:35] }


帮我检查一下是哪个依赖导致报错

回答关注问题邀请回答
收藏

4 个回答

  • 张晨  🔆
    张晨 🔆
    05-31

    2.0.2 修复了这个问题

    05-31
    有用
    回复
  • Demons
    Demons
    05-31

    试试2.0.2版本

    05-31
    有用
    回复 1
    • Freon
      Freon
      05-31
      还是不行
      05-31
      回复
  • WHERE
    WHERE
    06-01

    我2.0.2还是有问题 换成1.9.15就可以

    06-01
    有用
    回复
  • Cc.
    Cc.
    05-31

    我也遇到了这个报错,这个是因为miniprogram-ci最新包2.0.1中,在这个文件node_modules/miniprogram-ci/dist/modules/fullcompiler/getallwmltohtmlmap.js中找utils/handleerror/handleError.js这个文件名报的错,代码里写的是require("./utils/handleerror/handleerror"),但是这个文件名是handleError.js

    05-31
    有用
    回复 3
    • Freon
      Freon
      05-31
      是呀,今天早上就报错了,是不是因为ci更新的问题
      05-31
      回复
    • Cc.
      Cc.
      05-31回复Freon
      对我看他们昨天发包了,我们上线也遇到这个问题了,刚排查到是上面的原因
      05-31
      回复
    • Freon
      Freon
      05-31回复Cc.
      那我试试指定版本
      05-31
      回复
登录 后发表内容