admin管理员组文章数量:1302867
I have been trying to deploy my Cordova app to iOS Testflight but each time I do, the debug is telling me the plugins are not found. Therefore I tried to re-install cordova using npm uninstall and then npm install, followed by cordova add platform iOS
, but each time I do I receive the following error message: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it
.
I have read around that downgrading from Cordova 9.0.0 to 8.1.2 can fix this problem, so I again ran npm uninstall cordova
followed by npm install -g [email protected]
but when I then check the Cordova version using cordova -v
it still es back saying 9.0.0 ([email protected])
. I have tried using $ sudo
as well but I still get the same result
To give some context, this is a fairly old project with quite a few deprecations. I am just trying to get it on TestFlight again without making massive changes. Any help would be hugely appreciated!
I have been trying to deploy my Cordova app to iOS Testflight but each time I do, the debug is telling me the plugins are not found. Therefore I tried to re-install cordova using npm uninstall and then npm install, followed by cordova add platform iOS
, but each time I do I receive the following error message: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it
.
I have read around that downgrading from Cordova 9.0.0 to 8.1.2 can fix this problem, so I again ran npm uninstall cordova
followed by npm install -g [email protected]
but when I then check the Cordova version using cordova -v
it still es back saying 9.0.0 ([email protected])
. I have tried using $ sudo
as well but I still get the same result
To give some context, this is a fairly old project with quite a few deprecations. I am just trying to get it on TestFlight again without making massive changes. Any help would be hugely appreciated!
Share edited Nov 21, 2019 at 11:14 CommunityBot 11 silver badge asked Nov 21, 2019 at 6:58 LaythMLaythM 311 silver badge3 bronze badges1 Answer
Reset to default 8try uninstalling cordova 9.0.0 by following mand in your terminal:
sudo npm uninstall -g cordova
Then install 8.1.2 by:
sudo npm install -g [email protected]
Hope this helps...
本文标签: javascriptDowngrading Cordova version 900 to 812 is not workingStack Overflow
版权声明:本文标题:javascript - Downgrading Cordova version 9.0.0 to 8.1.2 is not working - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741718908a2394273.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论