We\'re using yarn for all our deterministic pkg installations but don\'t prevent the user from using npm - I\'m guessing having both these files will cause issues however. S
You're correct! Allowing both npm
and yarn
to be used is going to cause issues. Take a look at this article.
Currently, we’re planning to add some warnings to users who use both
yarn
andnpm
in the same repository to install packages.We highly recommend you to delete the
package-lock.json
file if you decide to use yarn in order to avoid future confusion and possible consistency issues.
You may not want both npm
and yarn
as your package manager.