Migrating from bower to yarn

梦想与她 提交于 2019-12-08 03:15:24

问题


Since bower package manager is deprecated now, I am finding a way to migrate my bower.json to "Yarn" without having to enter packages manually, or break dependencies.

Is there any script or utility to do the migration?


回答1:


I've written one: https://bower.io/blog/2017/how-to-migrate-away-from-bower/

Hope it helps




回答2:


For me running bower-away was enough. It took a while and some iterations until it finished, but was just follow the instructions.

As stated in the utility page just run the following commands:

yarn global add bower-away # or "npm install -g bower-away"
bower-away # listen and repeat!

Hope it helps.



来源:https://stackoverflow.com/questions/46728053/migrating-from-bower-to-yarn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!