gitlab 执行 gulp打包命令 报错
本地 和 远程 手动执行都没有问题 ,就是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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已找到原因 是因为gitlab执行脚本的权限不够 最后使用nodejs用root权限打包 就没问题了