Here is the relevant part of my package.json
file:
"devDependencies": {
"ajv": "^6.0.0",
"webpack": "^4.0.0",
"websocket": "^1.0.0",
"bignumber.js": "^7.0.0",
"decimal.js": "^10.0.0",
"truffle": "4.1.11",
"ganache-cli": "6.1.0",
"solidity-coverage": "0.5.4",
"ethereumjs-testrpc-sc": "6.1.2",
"web3": "1.0.0-beta.34"
}
I have this file in two different repositories, on the same PC.
When I run npm install
in each one of these repositories at the same time, I get a different package-lock.json
file in each repository.
How could this be?
Here is a possible clue:
If I delete the package-lock.json
file beforehand, then npm install
aborts with an error.
So the answer to my question is possibly related to the fact that npm install
relies on an already existing package-lock.json
file.
And initially, I had different package-lock.json
files in these repositories, because the corresponding package.json
files were different.
Now that I've changed the package.json
file in one of the repositories to be identical to the other, I am expecting that the corresponding package-lock.json
files will also become identical.