-
Notifications
You must be signed in to change notification settings - Fork 467
Failed to install 'cordova-hot-code-push-plugin':ReferenceError: error is not defined #137
Comments
Uploaded typo fix in the
It should now display correct installation error. |
Awesome Nik, the error is about spawnSync, I found a lot of problems with this and Windows.
|
Hmm, will investigate it tomorrow, but since I don't have a Windows machine - might be tricky... |
Thanks for your attention, maybe this post give you a clue? |
Yes, thanks. |
The reason is the OS environment. On windows, your file at your-App-path\plugins\cordova-hot-code-push-plugin\scripts\beforePluginInstallHook.js line 78, |
after changed above, execute |
Thanks for the input, @oxiao . Actually, I was thinking switching to |
@diegodotta uploaded possible fix. Please, try again with command:
|
The latest fix works for me, however you need to do the same fix in checkCliDependency() for "cordova-hcp". |
Great! Yes, and also for local dev plugin. Just wanted to know if it works. |
@rmswenson are you sure, that |
Yes, the test is failing for me when it's only |
Understood, thanks. |
Awesome @nikDemyankov, first plugin added with success!! 💃 |
Hi I just tried to install on cordova 6.3.0 on Linux but getting the same errors like here is there a new solution? Failed to install 'cordova-hot-code-push-plugin':TypeError: undefined is not a function |
Hi, What version of node and npm you are using? |
$ node -v |
The error you are having is because of the too low node version. Try to update to node v4.2 and npm v2.14. Or newer. |
Yep |
I'm spending few hours trying to install the plugin, but I always receive this message.
Installing dependency packages: { "xml2js": ">=0.4" } Failed to install 'cordova-hot-code-push-plugin':ReferenceError: error is not defined at module.exports (C:\Youper\Tests\TestProject\plugins\cordova-hot-code-push-plugin\scripts\beforePluginInstallHook.js:80:11) at runScriptViaModuleLoader (C:\Users\Youper XPS\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:167:18) at runScript (C:\Users\Youper XPS\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:145:16) at C:\Users\Youper XPS\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:130:20 at _fulfilled (C:\Users\Youper XPS\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54) at self.promiseDispatch.done (C:\Users\Youper XPS\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30) at Promise.promise.promiseDispatch (C:\Users\Youper XPS\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:749:13) at C:\Users\Youper XPS\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:810:14 at flush (C:\Users\Youper XPS\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17) at _combinedTickCallback (internal/process/next_tick.js:67:7) Error: error is not defined
My system info:
Some idea?
The text was updated successfully, but these errors were encountered: