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

[BUG] npx @willh/git-setup unable run under Ubuntu 22.04 #8213

Open
2 tasks done
doggy8088 opened this issue Apr 7, 2025 · 1 comment
Open
2 tasks done

[BUG] npx @willh/git-setup unable run under Ubuntu 22.04 #8213

doggy8088 opened this issue Apr 7, 2025 · 1 comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps

Comments

@doggy8088
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

When I run npx @willh/git-setup under Ubuntu 22.04. Here is the result:

sh: 1: git-setup: not found

Expected Behavior

In Windows, the same command npx @willh/git-setup will run normally. I expected it also can run under Linux.

Steps To Reproduce

Just run npx @willh/git-setup under Ubuntu 22.04 LTS.

Environment

  • npm: 10.9.2
  • Node.js: v22.14.0
  • OS Name: Linux 0e87ceaaea84 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux ( Ubuntu 22.04 )
  • System Model Name: Windows PC
  • npm config:
; node bin location = /usr/bin/node
; node version = v22.14.0
; npm local prefix = /app
; npm version = 10.9.2
; cwd = /app
; HOME = /root
; Run `npm config ls -l` to show all defaults.
@doggy8088 doggy8088 added Bug thing that needs fixing Needs Triage needs review for next steps labels Apr 7, 2025
@milaninfy
Copy link
Contributor

milaninfy commented Apr 7, 2025

For me it's working and executing correctly, maybe it has something to do with WSL. Could you please provide full logs of execution ?

npx -ddd @willh/git-setup and also the log file if you can. also check if it's reproducible on latest npm@11.2.0

root@271c0e289848:/# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

root@271c0e289848:/# npm -v
10.9.2

root@271c0e289848:/# node -v
v22.14.0

root@271c0e289848:/# npx @willh/git-setup
以下將會協助你進行 Git 版控環境設定:

請問您的顯示名稱? 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

2 participants