[英]Smart contract deploy with hardhat and heroku - ERR hardhat not installed
我有一个在heroku
上运行的nodejs
服务器,我希望我的用户能够从应用程序的前端部署smart-contracts
,这使得api
调用服务器。
问题:
我使用npx hardhat init
初始化了项目,添加了我的服务器内容并在本地测试了所有内容。 它完美无缺,但在heroku
上我不断收到: hardhat not installed
,即使它已添加到package.json
。
我花了好几个小时尝试了很多东西。 任何帮助表示赞赏
发现问题: hardhat
在devDep.
并且应该在dependencies
中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.