2 ms·
Yes, you can specify an exact version in package.json. The easiest way is by adding "-E" when installing: npm install chalk -ES yarn add chalk -ES The
by tln 5y ago
Yes, you can specify an exact version in package.json. The easiest way is by adding "-E" when installing:
npm install chalk -ES
yarn add chalk -ES
The -S installs and saves to package.json (equiv to requirements.txt).
That results in:
"dependencies": {
"chalk": "5.0.0"
}
which is an exact dependency. By default npm and yarn use "^5.0.0" which means minor upgrades are allowed (5.x.x).