egg icon indicating copy to clipboard operation
egg copied to clipboard

服务器 egg-scrips start 无法启动,一直提示文件找不到。但是本地能正常运行

Open LemonYo opened this issue 1 year ago • 5 comments

在此输入你需要反馈的 Bug 具体信息(Bug in Detail):

image

可复现问题的仓库地址(Reproduction Repo)

Node 版本号:

v18.19.1

Eggjs 版本号:

3.17.5

相关插件名称与版本号(PlugIn and Name):

egg-oss

操作平台与版本号(Platform and Version):

centos

LemonYo avatar Jul 04 '24 10:07 LemonYo

能否提供完整的错误日志?

fengmk2 avatar Jul 04 '24 10:07 fengmk2

https://github.com/node-modules/oss-client/blob/1.x/lib/common/client/initOptions.js

按报错提示,你安装的 node_modules 里面少了上面的这个文件

fengmk2 avatar Jul 04 '24 10:07 fengmk2

https://github.com/node-modules/oss-client/blob/1.x/lib/common/client/initOptions.js

按报错提示,你安装的 node_modules 里面少了上面的这个文件

我是在ci里面执行的npm i --production

LemonYo avatar Jul 04 '24 10:07 LemonYo

重点是,我即使是 disbaled egg-oss,其他的模块还是会出现module not fund

LemonYo avatar Jul 04 '24 10:07 LemonYo

https://github.com/node-modules/oss-client/blob/1.x/lib/common/client/initOptions.js

按报错提示,你安装的 node_modules 里面少了上面的这个文件

image

LemonYo avatar Jul 04 '24 10:07 LemonYo