Are yarn and npm interchangeable in practice?
问题 I have a project with a package.json file and an install bash script that, among other steps, runs npm install . I'm thinking of updating the script so that it runs yarn install if yarn is available (to take advantage of yarn's caching, lockfile, etc), and falls back to npm install otherwise. As far as I can tell, all the packages seem to install and work ok either way. Are yarn and npm interchangeable enough for this to be a viable approach, though? Or are there potential issues that this