cordova@8.1.0 breaks when prompting for telemetry opt-in
See original GitHub issueHi,
After installing npm install -g cordova
no cordova commands work at all
Every command asks if you can track, answering yes or no make no difference
Ticks around a while then reports the following error
Tried reinstall, uninstall / reinstall
No luck
Cant check version because that too results in error - but I just ran normal install command
/Users/rgb/.nvm/versions/node/v8.9.4/lib/node_modules/cordova/node_modules/insight/lib/index.js:156
prompt.close();
^
TypeError: prompt.close is not a function
at Insight.<anonymous> (/Users/rgb/.nvm/versions/node/v8.9.4/lib/node_modules/cordova/node_modules/insight/lib/index.js:156:10)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)
Also tried globally installing an npm module called prompt
incase that was the issue - no luck
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Blog - Apache Cordova
We have updated this plugin to support the breaking changes that were introduced in Android 11 around package visibility.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As I said before, this error only occurs when you have not answered the telemetry prompt before. Thus, a valid work-around would be to add
"optOut": false
or"optOut": true
to~/.config/configstore/insight-cordova.json
. I don’t know where the file is located on Windows, unfortunately.For Windows it should be in
C:\Users\%USERNAME%\.config\configstore\insight-cordova.json