GoogleChromeLabs / bubblewrap

Bubblewrap is a Command Line Interface (CLI) that helps developers to create a Project for an Android application that launches an existing Progressive Web App (PWAs) using a Trusted Web Activity.
Apache License 2.0
2.29k stars 152 forks source link

Unable to use Bubblewrap Build #853

Open tropicthedev opened 1 month ago

tropicthedev commented 1 month ago

Describe the bug Unable to utilize bubblewrap. While using bubblewrap build I got a cli ERROR spawn EINVAL error. To Reproduce Steps to reproduce the behavior:

  1. Install Bubblewrap
  2. run the init command with my website manifest
  3. enter the data to generate the project
  4. run bubblewrap build at the root of the project using the included dependencies

Expected behavior The CLI to build the android app without issues

Screenshots If applicable, add screenshots to help explain your problem. Screenshot 2024-05-29 203653

Additional context I installed the CLI via NPM and immediately tried to use it but failed

conorw commented 1 month ago

I encountered this on Windows 11 also. I was able to workaround this by using a different version of node e.g. 16 instead of 20.13.1

tropicthedev commented 1 month ago

Will try this

Andrey-Pavlov commented 4 weeks ago

I have the same issue Node v22.3.0

aibrahim- commented 1 week ago

This is due to a security patch in node, Bubblewrap needs to use { shell: true } when spawning a process: https://github.com/nodejs/node/issues/52554

As a workaround, use older version of node.