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

[Windows] CLI doesn't work if directory contains node.js file #1425

Open
1 task done
sqal opened this issue Jun 12, 2024 · 1 comment
Open
1 task done

[Windows] CLI doesn't work if directory contains node.js file #1425

sqal opened this issue Jun 12, 2024 · 1 comment

Comments

@sqal
Copy link

sqal commented Jun 12, 2024


Steps to Reproduce

  1. Create package.json
{
  "name": "test-project",
  "version": "1.0.0",
  "private": true,
  "devDependencies": {
    "typescript": "^5.4.4"
  }
}
  1. 🚨 Create empty node.js file in the same directory as package.json

  2. Run ncu (should be globally installed)

Current Behavior

CLI doesn't work as expected. instead it opens the node.js file in my default editor, I see weird logs and the process hangs indefinitely

C:\Users\...>
[main 2024-06-12T12:44:11.859Z] update#setState idle
[main 2024-06-12T12:44:41.872Z] update#setState checking for updates
[main 2024-06-12T12:44:41.922Z] update#setState idle

Expected Behavior

CLI should work.

System Info

  System:
    OS: Windows 10 10.0.19045
  Binaries:
    Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 4.1.1 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.5.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.2.0 - C:\Program Files\nodejs\pnpm.CMD
    bun: 1.1.11 - ~\.bun\bin\bun.EXE

  ncu version: 16.14.20

I also tested in on macOS, but I couldn't reproduce it on this os, only on Windows

// Edit:
Ok, so the logs seems to come from vscode (since it's my editor), but I still can't figure out why the CLI doesn't work

@raineorshine raineorshine changed the title CLI doesn't work if directory contains node.js file [Windows] CLI doesn't work if directory contains node.js file Jun 12, 2024
@raineorshine
Copy link
Owner

Hi, thanks for reporting.

I'm not on Windows, but hopefully someone who is can reproduce the issue and offer a solution.

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

No branches or pull requests

2 participants