-
Notifications
You must be signed in to change notification settings - Fork 37
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
Odd behaviour with Cordova plugin add operation using node snap #55
Comments
The actual shell command that Cordova is running is: This command does actually work fine when run from the shell, just not via the call to |
Apologies, I've just realised that this issue happens with the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello all, I have raised this issue with the Cordova maintainers here: apache/cordova#423
But, I suspect it's actually an issue with the snap as the problematic command works fine using an nvm install.
To repro this issue:
Expected:
The Cordova plugin is installed and Cordova reports
Adding cordova-plugin-device to package.json
Actual:
The message
Unexpected end of JSON input
is returned and no plugin is added.The cause is that no stdout seems to be received from the shell call (via the
execa
package) that Cordova makes tonpm
.exec
returns a successful zero error code. In addition, modifying the shell call to operate via bash shell redirection does yield some output, along with some additional error information. Please see the linked issue for more details and please do let me know if you need any more information.The text was updated successfully, but these errors were encountered: