Skip to content

[Bug]: native:serve -v fails with exit code 127 #69

@kolosz

Description

@kolosz

What happened?

Trying to start electron app by using the php artisan native:serve command.

Response: /var/www/html/vendor/nativephp/electron/resources/js/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

How to reproduce the bug

-> fresh install of a laravel app
-> composer require nativephp/electron
-> php artisan native:install
-> Would you like to install the NativePHP NPM dependencies? (yes/no) yes
-> Would you like to start the NativePHP development server (yes/no) yes

Package Version

0.1.1

PHP Version

8.2.8

Laravel Version

10.15.0

Node Version

18.17.0

Which operating systems does with happen with?

macOS

Notes

using macOS Ventura 13.4.1 with Docker Desktop
the laravel app is running fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions