如何解决Cordova报错: Cannot find module '../plugman/platforms/ios'
程序员文章站
2022-05-30 21:09:42
...
产生报错
Cordova删除插件时候, Terminal提示报错: Cannot find module '../plugman/platforms/ios'
cordova plugin add cordova-hot-code-push-local-dev-addon
cordova plugin rm cordova-hot-code-push-local-dev-addon
CHCP Local Dev plugin cleanup:
Error: Cannot find module '../plugman/platforms/ios'
解决方法:
当前cordova的版本是7.0.1, 该报错属于它自身命令行组件Bug, 在官方未发布版本修复前, 将版本降至6.5.0既可解决报错.
sudo npm i -g [email protected]