current position:Home>Sushiswap source code does not work properly NPX hardhat node

Sushiswap source code does not work properly NPX hardhat node

2022-02-03 23:49:27 Q & A of Denglian community

Run as official document npx hardhat node appear , The same is true with the issue contract command yarn ropsten:deploy

Compilation finished successfullyCreating Typechain artifacts in directory types for target ethers-v5Successfully 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.




Take the answer 1:

It should be that you have not installed dependencies , Yes after installation @uniswap/v2-core/build/IUniswapV2Pair.json Of






Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032349249008.html

Random recommended