gitlab 执行 gulp打包命令 报错

yang_j_j
  • 838

本地 和 远程 手动执行都没有问题 ,就是gitlab推送到远程后自动打包 报下面这个错


[18:10:12] Using gulpfile ~/syncsystem/source/m.chezhil.com/testing/chat/gulpfile.js
[18:10:12] Starting 'weinxinclean'...
[18:10:12] Finished 'weinxinclean' after 16 ms
[18:10:12] Starting 'weixin'...
[18:10:12] 'weixin' errored after 101 ms
[18:10:12] Error: Unable to load registry %github%
    at formatError (/usr/local/lib/node_modules/gulp/bin/gulp.js:169:10)
    at Gulp.<anonymous> (/usr/local/lib/node_modules/gulp/bin/gulp.js:195:15)
    at emitOne (events.js:77:13)
    at Gulp.emit (events.js:169:7)
    at Gulp.Orchestrator._emitTaskDone (/alidata/www/syncsystem/source/m.chezhil.com/testing/chat/node_modules/orchestrator/index.js:264:8)
    at /alidata/www/syncsystem/source/m.chezhil.com/testing/chat/node_modules/orchestrator/index.js:275:23
    at finish (/alidata/www/syncsystem/source/m.chezhil.com/testing/chat/node_modules/orchestrator/lib/runTask.js:21:8)
    at module.exports (/alidata/www/syncsystem/source/m.chezhil.com/testing/chat/node_modules/orchestrator/lib/runTask.js:36:10)
    at Gulp.Orchestrator._runTask (/alidata/www/syncsystem/source/m.chezhil.com/testing/chat/node_modules/orchestrator/index.js:273:3)
    at Gulp.Orchestrator._runStep (/alidata/www/syncsystem/source/m.chezhil.com/testing/chat/node_modules/orchestrator/index.js:214:10)
回复
阅读 2.6k
1 个回答

已找到原因 是因为gitlab执行脚本的权限不够 最后使用nodejs用root权限打包 就没问题了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏