After reseting plugins, Ionic 2 program doesn't work?

淺唱寂寞╮ 提交于 2019-12-04 19:47:43

The command

ionic state reset --plugins

removes everything and then bring back what you have specified in the package.json file. Is the Beacon Plugin reference in your project's package.json file? If not, you will have to run

ionic plugin add https://github.com/petermetz/cordova-plugin-ibeacon.git

to add it again. Once everything is working again, you can run the following command in order to save current plugins / platforms to the package.json:

ionic state save

And then, if you need to quickly load in plugins and platforms, you can simply do:

ionic state restore

And Ionic will add in the appropriate plugins and platforms.

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