Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix corrupted lockfile due to the NPM bug #4828. #189

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mreitschuster
Copy link

Hi all!
I tried using the newest version to learn how to use VRF 2.5. So i checked out and installed a fresh version with:

git clone https://github.com/smartcontractkit/hardhat-starter-kit.git
cd hardhat-starter-kit
npm install
npx hardhat test

results in

Error HH18: You installed Hardhat with a corrupted lockfile due to the NPM bug #4828.
Please delete your node_modules, package-lock.json, reinstall your project, and try again.
For more info go to https://hardhat.org/HH18 or run Hardhat with --show-stack-traces

After some research it seems to me the package-lock.json should be generated by the npm install command, and not necessarily be part of the git source. Removing the package-lock.json and adding it to the .gitignore fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant