[英]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.