[BUG]: Unable to run "npm" after "vfox use nodejs" in Git Bash
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
The report names the install directory nodejs/ under the vfox temp path, where npm is a shell script and npm.cmd is a Windows batch shim. Reproduce on Windows in Git Bash with vfox use nodejs and compare which npm against npm.cmd, then find where the plugin's Lua hooks put that directory on PATH. Done when npm --version works in Git Bash after vfox use nodejs.
由索引模型根據 Issue 內容生成。
描述
Version
vfox 0.5.3 (installed using scoop)
OS
Windows 11
Describe the bug
After running vfox use nodejs in Git Bash, I can execute node, but I get a "No such file or directory" error if I try to execute npm. After looking inside the directory mentioned in the error message, I did find that if I instead run npm.cmd, it works.
Example
$ vfox use nodejs
Please select a version of nodejs:
-> 20.13.1
Now using [email protected].
$ node --version
v20.13.1
$ npm --version
/bin/bash: C:/Users/colec/.version-fox/temp/1716613200-1047/nodejs/npm: No such file or directory
$ ls -al /c/Users/colec/.version-fox/temp/1716613200-1047/nodejs/
total 67896
drw-rw-rw- 3 colec 0 4096 2024-05-25 21:58 .
drw-rw-rw- 3 colec 0 0 2024-05-25 21:58 ..
-rw-rw-rw- 1 colec 0 55087 2024-05-25 21:58 CHANGELOG.md
-rw-rw-rw- 1 colec 0 334 2024-05-25 21:58 corepack
-rwxrwxrwx 1 colec 0 218 2024-05-25 21:58 corepack.cmd
-rwxrwxrwx 1 colec 0 3033 2024-05-25 21:58 install_tools.bat
-rw-rw-rw- 1 colec 0 119618 2024-05-25 21:58 LICENSE
-rwxrwxrwx 1 colec 0 69266072 2024-05-25 21:58 node.exe
drw-rw-rw- 4 colec 0 0 2024-05-25 21:58 node_modules
-rwxrwxrwx 1 colec 0 702 2024-05-25 21:58 nodevars.bat
-rw-rw-rw- 1 colec 0 2073 2024-05-25 21:58 npm
-rwxrwxrwx 1 colec 0 538 2024-05-25 21:58 npm.cmd
-rw-rw-rw- 1 colec 0 2073 2024-05-25 21:58 npx
-rwxrwxrwx 1 colec 0 538 2024-05-25 21:58 npx.cmd
-rw-rw-rw- 1 colec 0 39557 2024-05-25 21:58 README.md
$ npm.cmd --version
10.5.2
- 主要語言
- Go
- 星號
- 10
- 分支
- 8
- 平均合併
- 1 小時 51 分鐘
- 30 天內合併 PR
- 12
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
version-fox/vfox-nodejs 的其他 Issue
-
bug help wanted
難度 4/5 1-2 天 新手友好度 15/100
version-fox/vfox-nodejs#46 ·
維護者通常 1 天內回覆
-
invalid
難度 3/5 半天 新手友好度 40/100
version-fox/vfox-nodejs#32 · 1 則留言 ·
維護者通常 1 天內回覆
-
invalid
難度 4/5 3-5 天 新手友好度 25/100
version-fox/vfox-nodejs#35 · 4 則留言 ·
維護者通常 1 天內回覆
查看 version-fox/vfox-nodejs 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
-
難度 2/5 1-3 小時 新手友好度 78/100
koordinator-sh/koordinator#3257 ·
維護者通常 6 天內回覆
-
難度 2/5 1-3 小時 新手友好度 67/100
-
Component: Backup and Restore Type: Bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
needs-acceptance wg/router-models-inference-runtime
難度 2/5 1-3 小時 新手友好度 88/100
vllm-project/semantic-router#6018 ·
維護者通常 2 天內回覆