simonhamp / cronikl

A scheduled task manager
https://simonhamp.me/open-source
62 stars 6 forks source link

php artisan native:build is broken #2

Open radermacher opened 1 year ago

radermacher commented 1 year ago

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.(https://github.com/simonhamp/cronikl/issues/1#issuecomment-1645406569)

radermacher commented 1 year ago

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

> NativePHP@1.0.0 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