neutralinojs / neutralinojs

Portable and lightweight cross-platform desktop application development framework

Home Page:https://neutralino.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started instructions doesn't work in Windows 11

jouni-kantola opened this issue · comments

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
```

same....any updates?