Skip to content

Hardhat local installation error #5362

@kanej

Description

@kanej

Hardhat can be installed as a global cli:

npm install -g hardhat

Running hardhat as if locally without a local installation should error:

> rm -rf ./node_modules
> npx hardhat --version

Error HHxxx: Trying to use a non-local installation of Hardhat, which is not supported.
Please install Hardhat locally using npm or Yarn, and try again.

For more info go to https://hardhat.org/HHxxx or run Hardhat with --show-stack-traces

Metadata

Metadata

Assignees

Labels

status:readyThis issue is ready to be worked onv-nextA Hardhat v3 development task

Type

Projects

Status

In Review

Relationships

None yet

Development

No branches or pull requests

Issue actions