Skip to content
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

php artisan native:build is broken #2

Open
radermacher opened this issue Jul 21, 2023 · 1 comment
Open

php artisan native:build is broken #2

radermacher opened this issue Jul 21, 2023 · 1 comment

Comments

@radermacher
Copy link

When I run php artisan native:build I got this error:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/nativephp-electron - Not found
npm ERR! 404
npm ERR! 404  'nativephp-electron@^1.0.0' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

php artisan native:serve is working, after I figured out the missing steps to set it up.(#1 (comment))

@radermacher
Copy link
Author

With current updates of these repo I got an different error now, when I run php artisan native:build:

> [email protected] build:mac-arm
> cross-env node php.js --arm64 && cross-env npm run build && cross-env electron-builder -p never --mac --config --arm64

node:internal/modules/cjs/loader:1093
  throw err;
  ^

Error: Cannot find module '/Users/richard/Code/cronikl/vendor/nativephp/electron/resources/js/php.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
    at Module._load (node:internal/modules/cjs/loader:934:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v19.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant