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.<anonymous> (/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 的

请先 登录 后评论

其它 1 个回答

比特聪
请先 登录 后评论
  • 2 关注
  • 0 收藏,3099 浏览
  • 比特聪 提出于 2021-03-01 22:36