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 badges
Add a ment  | 

1 Answer 1

Reset to default 8

try 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