Search code examples
nfthardhat

Getting an error -Error HH308: Unrecognized positional argument scripts/deploy.js


Ia m trying to run the command:

npx hardhat run src/backend/ scripts/deploy.js --network localhost

But it gives error:

Error HH308: Unrecognized positional argument scripts/deploy.js

can anyone help?


Solution

  • It should be

    npx hardhat run scripts/deploy.js --network localhost