You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/06/26 07:30:20 UTC

[GitHub] [cordova] khankingtauseef commented on issue #130: After upgrade cordova not able to run cordova from php exec() or shell_exec()

khankingtauseef commented on issue #130: After upgrade cordova not able to run cordova from php exec() or shell_exec()
URL: https://github.com/apache/cordova/issues/130#issuecomment-505755962
 
 
   After cordova update from 7.1.0 to latest 9.0.0, cordova -v run in terminal but when we use it with php exec('cordova -v') or shell_exex('cordova -v') or exec(`cordova -v`) not working, display below error.
   Also when we downgrade cordova version from 9.0.0 to 6.0.0 it will worked.
   please help us to solve this issue.
   
   Array
   (
       [0] => path.js:7
       [1] =>     throw new TypeError('Path must be a string. Received ' + inspect(path));
       [2] =>     ^
       [3] => 
       [4] => TypeError: Path must be a string. Received undefined
       [5] =>     at assertPath (path.js:7:11)
       [6] =>     at Object.join (path.js:1217:7)
       [7] =>     at Object. (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js:31:31)
       [8] =>     at Module._compile (module.js:577:32)
       [9] =>     at Object.Module._extensions..js (module.js:586:10)
       [10] =>     at Module.load (module.js:494:32)
       [11] =>     at tryModuleLoad (module.js:453:12)
       [12] =>     at Function.Module._load (module.js:445:3)
       [13] =>     at Module.require (module.js:504:17)
       [14] =>     at require (internal/module.js:20:19)
       [15] => openjdk version "1.8.0_191"
       [16] => OpenJDK Runtime Environment (build 1.8.0_191-b12)
       [17] => OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
       [18] => v6.16.0
       [19] => 3.10.10
   )
   
   Thank you.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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