7

sushiswap源码不能正常运行 npx hardhat node | 登链社区 | 技术问答

 3 years ago
source link: https://learnblockchain.cn/question/1829
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
sushiswap源码不能正常运行 npx hardhat node

20 sushiswap源码不能正常运行 npx hardhat node

按官方文档运行 npx hardhat node 出现 ,使用发布合约命令也一样 yarn ropsten:deploy

Compilation finished successfully
Creating Typechain artifacts in directory types for target ethers-v5
Successfully generated Typechain artifacts!
An unexpected error occurred:

Error: ERROR processing skip func of /root/sushiswap/deploy/SushiMaker.js:
Error: Cannot find module '@uniswap/v2-core/build/IUniswapV2Pair.json'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/root/sushiswap/node_modules/@sushiswap/sdk/dist/sdk.cjs.development.js:18:38)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at DeploymentsManager.executeDeployScripts (/root/sushiswap/node_modules/hardhat-deploy/src/DeploymentsManager.ts:869:15)
at DeploymentsManager.runDeploy (/root/sushiswap/node_modules/hardhat-deploy/src/DeploymentsManager.ts:819:16)
at process._tickCallback (internal/process/next_tick.js:68:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

最佳答案 2021-03-02 10:05

应该是你没有安装依赖, 安装完是有 @uniswap/v2-core/build/IUniswapV2Pair.json 的

Tiny熊 - 布道者
擅长:智能合约,以太坊 | 采纳率 43% | 回答于 2021-03-02 08:44

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK