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

Getting Started instructions doesn't work in Windows 11 #1233

Open
jouni-kantola opened this issue Apr 2, 2024 · 2 comments
Open

Getting Started instructions doesn't work in Windows 11 #1233

jouni-kantola opened this issue Apr 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jouni-kantola
Copy link

jouni-kantola commented Apr 2, 2024

Describe the bug

The following error message is displayed in Windows 11 when following the Your First Neutralinojs App docs:

neu: INFO Starting process: neutralino-win_x64.exe  --load-dir-res --path=. --export-auth-info --neu-dev-extension --neu-dev-auto-reload
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: spawn bin\neutralino-win_x64.exe ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn bin\\neutralino-win_x64.exe',
  path: 'bin\\neutralino-win_x64.exe',
  spawnargs: [
    '',
    '--load-dir-res',
    '--path=.',
    '--export-auth-info',
    '--neu-dev-extension',
    '--neu-dev-auto-reload'
  ]
}

To Reproduce
Steps to reproduce the behavior:

  1. npx @neutralinojs/neu create myapp
  2. cd myapp
  3. npx @neutralinojs/neu run
  4. See error
  5. Running npx @neutralinojs/neu update doesn't help, results in same error.

Expected behavior

App should start.

Having to add the following config manually and then run npx @neutralinojs/neu update is much to ask from when getting started (especially as it's not mentioned in the Getting Started docs).

"cli": {
    "binaryVersion": "5.1.0",
    "clientVersion": "5.1.0",
    ...
}

Specifications

  • OS: Windows 11
  • Note: Removing binaryVersion and clientVersion from config, like the file is scaffolded when running npx @neutralinojs/neu create myapp:
npx @neutralinojs/neu version
[...]
--- Global ---
neu CLI: v9.6.0

--- Project: myapp (js.neutralino.sample) ---
Neutralinojs binaries: vundefined
Neutralinojs client: Installed from a package manager
Project version: v1.0.0
```
@jouni-kantola jouni-kantola added the bug Something isn't working label Apr 2, 2024
@DexYang
Copy link

DexYang commented May 10, 2024

same....any updates?

@Bonnev
Copy link

Bonnev commented May 24, 2024

Running neu update only downloads the binary corresponding to binaryVersion. If you don't have it, you can run neu run --latest which will download latest regardless of this property and add/update it in neutralino.config.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants