I installed a package with yarn add --dev
, run its setup process and during it, the package installed several other packages and added those to package.json
(in devDependencies
), I assume with npm. Great, but now my yarn.lock
is out of sync.
What is the correct, non-manual way of syncing yarn.lock
to the current state of package.json
?
Edit: yarn check
shows the missing packages as:
error Lockfile does not contain pattern: <package>@<version>
But it doesn't add them.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…