After installing Truffle with yarn add truffle
, the following line shows up in package.json
:
"truffle": "^5.1.52"
In the root directory of the project, the truffle version
prints out the following:
$truffle version
Truffle v4.1.12 (core: 4.1.12)
Solidity v0.4.24 (solc-js)
Why is the Truffle version from command line is one version older than it is in the package.json
?