Jenkins 打包报错~



  • 微信图片_20190610230010.png

    Jenkins 打包报错~



  • taro command not found ,CLI 依赖没有装好?



  • 安装后, 又有另外一个错误了

    (node:8061) UnhandledPromiseRejectionWarning: TypeError: Cannot use 'in' operator to search for 'enableDll' in /data/jenkins/workspace/content-management-h5-web
    at Object.<anonymous> (/data/jenkins/workspace/content-management-h5-web/node_modules/@tarojs/webpack-runner/dist/index.js:108:25)
    at Generator.next (<anonymous>)
    at /data/jenkins/workspace/content-management-h5-web/node_modules/@tarojs/webpack-runner/dist/index.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/data/jenkins/workspace/content-management-h5-web/node_modules/@tarojs/webpack-runner/dist/index.js:3:12)
    at exports.default (/data/jenkins/workspace/content-management-h5-web/node_modules/@tarojs/webpack-runner/dist/index.js:98:31)
    at Compiler.<anonymous> (/usr/lib/node_modules/@tarojs/cli/dist/h5/index.js:153:13)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/node_modules/@tarojs/cli/dist/h5/index.js:4:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    (node:8061) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
    (node:8061) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

    • chown -R 101:101 dist
      chown: cannot access ‘dist’: No such file or directory
      Build step 'Execute shell' marked build as failure
      Finished: FAILURE


  • 后面这个错就是典型的项目依赖版本和cli版本对不上的情况了


登录后回复