按官方文档运行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.