[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
-
csp-probe needs efqdn to probe CSP domains可能已有人在做 @unknownhackerworld 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
projectdiscovery/httpx#2725 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
category:helper tech-debt
难度 2/5 1-3 小时 新手友好度 84/100
LanternOps/breeze#11285 ·
维护者通常 1 天内回复
-
Query cache: a failed cache page read leaves the set request's read lock held, so the scan hangs未关闭
难度 2/5 1-3 小时 新手友好度 78/100
turbot/steampipe-plugin-sdk#986 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100