如何使用Gatsby在我的本地项目中使用我自己的npm模块派生

时间:2019-11-20 22:25:07

标签: npm gatsby

我正在使用Gatsby创建一个项目。现在我正在使用react-awesome-query-builder,但是我意识到我可能需要调整此模块/库才能完成我需要的工作。

因此模块是分叉的here

现在,如果我需要在项目中使用此依赖项。我的gatsby-project/package.json

有以下更改
"react-awesome-query-builder": "https://github.com/monicasalamanca/react-awesome-query-builder.git"

我还将脚本部分更新为:     “ postinstall”:“ cd node_modules / react-awesome-query-builder && npm i && npm运行构建”

现在,当我在gatsby-project中运行npm install时,我不断收到此错误: enter image description here
我该如何解决这些问题。谁能指出我正确的方向?

0 个答案:

没有答案