Skip to content

[Bug]: Running native:serve gives an error regarding SUID sandbox helper. #130

@RoccoHoward

Description

@RoccoHoward

What happened?

Getting the following error:

[FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /vendor/nativephp/electron/resources/js/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.

How to reproduce the bug

php artisan native:serve

Package Version

0.3.2

PHP Version

8.2.8

Laravel Version

10.16.1

Which operating systems does with happen with?

Windows, Linux

Notes

The fix is to run export npm_config_platform=win32 before php artisan native:serve

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions