You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i run the command php artisan native:build i'm receiving the following error.
Error: Cannot find module '/Users/sebastian/Projects/native/vendor/nativephp/electron/resources/js/php.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Maybe thats an version reference issue?
Full Output
sebastian@sebastian native % php artisan native:build
Build NativePHP app…
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.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sebastian/.npm/_logs/2023-07-21T02_17_05_238Z-debug-0.log
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 0 updates, 37 removals
- Removing theseer/tokenizer (1.2.1)
- Removing symfony/yaml (v6.3.0)
- Removing spatie/laravel-ignition (2.2.0)
- Removing spatie/ignition (1.9.0)
- Removing spatie/flare-client-php (1.4.1)
- Removing spatie/backtrace (1.5.3)
- Removing sebastian/version (4.0.1)
- Removing sebastian/type (4.0.0)
- Removing sebastian/recursion-context (5.0.0)
- Removing sebastian/object-reflector (3.0.0)
- Removing sebastian/object-enumerator (5.0.0)
- Removing sebastian/lines-of-code (2.0.0)
- Removing sebastian/global-state (6.0.1)
- Removing sebastian/exporter (5.0.0)
- Removing sebastian/environment (6.0.1)
- Removing sebastian/diff (5.0.3)
- Removing sebastian/complexity (3.0.0)
- Removing sebastian/comparator (5.0.0)
- Removing sebastian/code-unit-reverse-lookup (3.0.0)
- Removing sebastian/code-unit (2.0.0)
- Removing sebastian/cli-parser (2.0.0)
- Removing phpunit/phpunit (10.2.6)
- Removing phpunit/php-timer (6.0.0)
- Removing phpunit/php-text-template (3.0.0)
- Removing phpunit/php-invoker (4.0.0)
- Removing phpunit/php-file-iterator (4.0.2)
- Removing phpunit/php-code-coverage (10.1.2)
- Removing phar-io/version (3.2.1)
- Removing phar-io/manifest (2.0.3)
- Removing nunomaduro/collision (v7.7.0)
- Removing myclabs/deep-copy (1.11.1)
- Removing mockery/mockery (1.6.4)
- Removing laravel/sail (v1.23.1)
- Removing laravel/pint (v1.10.5)
- Removing hamcrest/hamcrest-php (v2.0.1)
- Removing filp/whoops (2.15.3)
- Removing fakerphp/faker (v1.23.0)
0/27 [>---------------------------] 0%
27/27 [============================] 100%
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
laravel/sanctum ....................................................... DONE
laravel/tinker ........................................................ DONE
nativephp/electron .................................................... DONE
nativephp/laravel ..................................................... DONE
nesbot/carbon ......................................................... DONE
nunomaduro/termwind ................................................... DONE
53 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> 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:1078
throw err;
^
Error: Cannot find module '/Users/sebastian/Projects/native/vendor/nativephp/electron/resources/js/php.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.15.0
How to reproduce the bug
run php artisan native:build
Package Version
0.1
PHP Version
8.2
Laravel Version
10.*
Which operating systems does with happen with?
macOS
Notes
No response
The text was updated successfully, but these errors were encountered:
when i run the command
php artisan native:build
i'm receiving the following error.Full Output
How to reproduce the bug
run
php artisan native:build
Package Version
0.1
PHP Version
8.2
Laravel Version
10.*
Which operating systems does with happen with?
macOS
Notes
No response
The text was updated successfully, but these errors were encountered: