在 docker 镜像中使用 fork npm 包

问题描述

我在我的一个 docker compose 镜像中使用了一个非常酷的 npm 包 react-awesome-query-builder。但是,有一个小错误我能够找到答案。我对包进行了分叉,进行了更改并将更改推送到我的分叉上。然后我尝试修改我的 package.json 以使用我的分叉包

"react-awesome-query-builder": "billtlee/react-awesome-query-builder#Material-UI-subgroups",

但是,当我尝试 docker-compose 构建包时,出现以下错误:

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -2
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/billtlee/react-awesome-query-builder.git
npm ERR! enoent 
npm ERR! enoent 
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

我也尝试在 codeandbox.io 上使用该软件包,但它也在抱怨。有谁知道我做错了什么? 提前致谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)