AnthonyNahas commented on issue #65: Fix: @cordova 7-8 Error: Failed to fetch 
plugin cordova-plugin-batter?
URL: 
https://github.com/apache/cordova-plugin-battery-status/pull/65#issuecomment-363114380
 
 
   I will close the issue since i can guarantee that the problem is related to 
the `cordova cli 7.1.0` and not the plugin.
   
   ## cordova 8.0.0 +  cordova-plugin-battery-status
   this works fine
   
   ## cordova 7.1.0 +  cordova-plugin-battery-status
   
   cordova crashes
   
   ```sh
   cordova plugin add cordova-plugin-battery-status
   C:\git\dff-cordova-plugin-demoapp\node_modules\cordova\bin\cordova
   Error: Failed to fetch plugin cordova-plugin-battery-status via registry.
   Probably this is either a connection problem, or plugin spec is incorrect.
   Check your connection and plugin name/version/URL.
   Error: cmd: Command failed with exit code 1 Error output:
   npm ERR! Windows_NT 10.0.16299
   ```
   
   ## cordova 7.1.0 +  
https://github.com/AnthonyNahas/cordova-plugin-battery-status.git#2.0.3 
   
   cordova crashes
   
   ```sh
   cordova plugin add 
https://github.com/AnthonyNahas/cordova-plugin-battery-status.git#2.0.3
   (node:10988) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 1): CordovaError: Failed to fetch plugin 
https://github.com/AnthonyNahas/cordova-plugin-battery-status.git#2.0.3 via 
registry.
   Probably this is either a connection problem, or plugin spec is incorrect.
   Check your connection and plugin name/version/URL.
   Error: cmd: Command failed with exit code 4294963238 Error output:
   
   npm ERR! path C:....node_modules\npm\node_modules\ansistyles
   npm ERR! code ENOENT
   npm ERR! errno -4058
   npm ERR! syscall rename
   npm ERR! enoent ENOENT: no such file or directory, rename 
'C:\..\node_modules\npm\node_modules\ansistyles' -> '
   npm ERR! Windows_NT 10.0.16299
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to