You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/09/05 08:52:50 UTC

[GitHub] [cordova-android] mac89 commented on issue #1395: Error “cordova\version is not recognized as an internal or external command, operable program or batch file”

mac89 commented on issue #1395:
URL: https://github.com/apache/cordova-android/issues/1395#issuecomment-1236718637

   This happened to me when adding a plugin while the iOS platform was also added on Windows 10. When I removed the iOS platform again, it worked as expected. 
   
   ```
   cordova plugin add @havesource/cordova-plugin-push
   (node:19764) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\MaartenManders\StudioProjects\app\node_modules\objectorarray\package.json' of 'dist/index.js'. Please either fix that or report it
    to the module author
   (Use `node --trace-deprecation ...` to show where the warning was created)
   Installing "@havesource/cordova-plugin-push" for android
   Subproject Path: CordovaLib
   Subproject Path: app
   Installing "@havesource/cordova-plugin-push" for ios
   Adding @havesource/cordova-plugin-push to package.json
   Error: Command failed: "C:\Users\MaartenManders\StudioProjects\app\platforms\android\cordova\version"
   '"C:\Users\MaartenManders\StudioProjects\app\platforms\android\cordova\version"' is not recognized as an internal or external command,
   operable program or batch file.
   
       at ChildProcess.exithandler (node:child_process:397:12)
       at ChildProcess.emit (node:events:390:28)
       at maybeClose (node:internal/child_process:1064:16)
       at Socket.<anonymous> (node:internal/child_process:450:11)
       at Socket.emit (node:events:390:28)
       at Pipe.<anonymous> (node:net:687:12) {
     killed: false,
     code: 1,
     signal: null,
     cmd: '"C:\\Users\\MaartenManders\\StudioProjects\\app\\platforms\\android\\cordova\\version"'
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org