yarn.lock 和 package-lock.json 相互转换

 

 

yarn.lock 转换为  package-lock.json  

 

synp

Convert yarn.lock to package-lock.json and vice versa.

install

npm install -g synp

command line usage

yarn.lock => package-lock.json

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

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
posted @ 2021-01-12 14:27  leechg  阅读(2048)  评论(0编辑  收藏  举报