cordova-cli
cordova-cli copied to clipboard
`cordova plugin add` with folder with trailing backward slash crashes on Windows
On Windows, this fails:
λ cordova plugin add "..\..\Cordova\cordova-plugin-device\" --verbose
Invalid attribute predicate
but this works:
E:\Projects\throwaway\cordovaIonicRestorePluginBug (master -> origin) ([email protected])
λ cordova plugin add "../..\Cordova\cordova-plugin-device/" --verbose
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "../..\Cordova\cordova-plugin-device/"
...
Seems the trailing backward slash is crashing something.
Info
λ cordova -v
9.0.0 ([email protected])
Only happens if the path is wrapped in double quotes additionally to the trailing backward slash.