Getting CLI ERROR spawn EINVAL when building an android project #861
Unanswered
EslamElbyaly
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to install bubblewrap CLI through Node.js on Windows 11 Home edition then initiate and build an android project to call a PWA.
I downloaded Node.js then installed it successfully without the additional tools. As you might know, there's a checkbox that user can tick if they need to install the additional tools. I did not do that, and installed only Node.js.
After that, I opened CMD and ran npm i -g @bubblewrap/cli. I got the following output...
npm warn deprecated @types/minipass@3.3.5: This is a stub types definition. minipass provides its own type definitions, so you do not need this installed.
npm warn deprecated @types/gapi.client.androidpublisher@3.0.2: use @types/gapi.client.androidpublisher-v3 instead; see Maxim-Mazurok/google-api-typings-generator#652 for details
npm warn deprecated phin@2.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
changed 266 packages in 33s
30 packages are looking for funding
run
npm fund
for detailsThen I used bubblewrap init --manifest my_pwa_manifest_Url and got...
(node:11124) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)? Do you want Bubblewrap to install the JDK (recommended)?
I entered Y for it and Y for other questions to download the Android SDK and for agreeing the Android SDK terms.
It started the initialization process of the app, and I started answering the prompt till I got "Project generated successfully.
When tried to build the project using bubblewrap build, I got
(node:12536) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
and it asked to agree to the terms of installing build tools and I said Yes then after that I got cli ERROR spawn EINVAL.
P.S: I tried many versions of Node.js 20.15, 19.9, 18.20.3 and 22.3.
Beta Was this translation helpful? Give feedback.
All reactions