Support for Cordova CLI local installation

For those of use with several projects, it’s important to maintain control over the versions of all modules involved in the process. For mobile projects, the platform and plugins are kept locally for each project, which works great.

Cordova CLI however, currently requires the -g option for global installation on the machine. Upgrading (for example to Cordova CLI 10 recently released) becomes a risk – is the developer ready for potential breaking changes across projects!

Cordova allows for local CLI installation (remove the -g) however Wappler appears to only support global. This request is for Wappler to support local Cordova CLI.

Anytime Wappler calls cordova, it should first look for and execute the local copy

node_modules/.bin/cordova

and if not found, then use the global cordova command.

Good idea!

Will see if we can add this as a project option.

2 Likes

This was implemented in Wappler - there is a global setting to enable it.

This topic was automatically closed after 24 hours. New replies are no longer allowed.