Question: are yarn and npm compatible?
Answer: Yarn can consume the same package. json format as npm, and can install any package from the npm registry. ... However, you will not be able to take advantage of the Yarn. lock generated by Yarn, because (as the name suggests) it's only supported by Yarn, and npm shrinkwrap is not compatible.