yarn.lock 转换为 package-lock.json
Convert yarn.lock
to package-lock.json
and vice versa.
npm install -g synp
yarn # be sure the node_modules folder dir and is updated
synp --source-file /path/to/yarn.lock
# will create /path/to/package-lock.json
package-lock.json 转换为 yarn.lock
npm install # be sure the node_modules dir exists and is updated
synp --source-file /path/to/package-lock.json
# will create /path/to/yarn.lock
yarn.lock 和 package-lock.json 相互转换
原文:https://www.cnblogs.com/Leechg/p/14266780.html