-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cordova@8.1.0 breaks when prompting for telemetry opt-in #337
Comments
Looking at that file:
Two things:
|
OK found the issue will send pr |
OK FYI the bug is already fixed in the latest on The current |
Can you please share the following information:
I just tried Cordova CLI 8.1.0 on Node.js 4, 6, 8, and 10 on my Windows PC. I found issue on Node.js 4 and raised issue #339; Possibly related: #338 |
I found a repro for this bug on node 8.12.0, npm 6.4.1 |
I guess the important part here is that you must not have a saved opt-in for this issue to surface. @brodybits In hindsight, we should have tested the use-case that actually uses |
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 |
For Windows it should be in |
This re-introduces a _low-severity_ `npm audit` warning. Fixes apache#337
I just reproduced this issue on Windows: C:\Users\brodybits\Documents
λ rm -rf \Users\brodybits\.config\
C:\Users\brodybits\Documents
λ cordova --version
? May Cordova anonymously report usage statistics to improve the tool over time? Yes
C:\Users\brodybits\AppData\Local\nvs\node\10.11.0\x64\node_modules\cordova\node_modules\insight\lib\index.js:156
prompt.close();
^
TypeError: prompt.close is not a function
at Insight.<anonymous> (C:\Users\brodybits\AppData\Local\nvs\node\10.11.0\x64\node_modules\cordova\node_modules\insight\lib\index.js:156:10)
at ontimeout (timers.js:425:11)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10) |
We just published Cordova CLI 8.1.1 which resolves this issue. In case you encounter this or any other issue in the future please do not hesitate to report it. |
Hi,
After installing
npm install -g cordova
no cordova commands work at allEvery 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
Also tried globally installing an npm module called
prompt
incase that was the issue - no luckThe text was updated successfully, but these errors were encountered: