Open colececil opened 6 months ago
I have not reproduced this issue.
@aooohan Is there anything I can do to help find a way to reproduce the issue? I tried it on a different Windows machine, and I get the issue there too. Though interestingly, the error message is different there, and it seems to be coming from WSL (see the command line output below). Also, I'm not sure if this would make a difference, but on both of these machines, I have gow installed via Scoop.
$ vfox use nodejs
Please select a version of nodejs:
-> 20.14.0
Now using nodejs@20.14.0.
$ which node
C:\Users\colec\.version-fox\temp\1716872400-1847\nodejs\node.EXE
$ node --version
v20.14.0
$ which npm
C:\Users\colec\.version-fox\temp\1716872400-1847\nodejs\npm
$ npm --version
<3>WSL (10) ERROR: CreateProcessParseCommon:711: Failed to translate C:\Users\colec
<3>WSL (10) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\colec\.version-fox\temp\1716872400-1847\nodejs
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\colec\.version-fox\temp\1716872400-2608\nodejs
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\OpenSSH
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Git\usr\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\Intel\iCLS Client
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Intel\iCLS Client
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\system32
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\Wbem
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\WindowsPowerShell\v1.0
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\ProgramData\chocolatey\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\GtkSharp\2.12\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\OpenSSH
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\colec\scoop\apps\vscodium\current\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\colec\go\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\colec\scoop\apps\volta\current\appdata\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\colec\scoop\shims
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Ruby22-x64\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\colec\AppData\Local\Microsoft\WindowsApps
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Microsoft VS Code\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\tools\cmder
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Aseprite
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\colec\AppData\Local\JetBrains\Toolbox\scripts
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\colec\repos\familiar.sh
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.
<3>WSL (10) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2
<3>WSL (10) ERROR: CreateProcessEntryCommon:505: execvpe /bin/bash failed 2
<3>WSL (10) ERROR: CreateProcessEntryCommon:508: Create process not expected to return
$ which npm.cmd
C:\Users\colec\.version-fox\temp\1716872400-1847\nodejs\npm.cmd
$ npm.cmd --version
10.7.0
@aooohan I discovered that, interestingly, I don't have this issue with Node.js <= v15.11.0.
我使用vfox-clang插件在git-bash中复现了这个问题,而在powershell中能够正常工作
Sunrise@Yane MINGW64 /c/WINDOWS/system32
$ clang --version
bash: clang: command not found
Sunrise@Yane MINGW64 /c/WINDOWS/system32
$ clang.bat --version
clang version 18.1.7
Target: x86_64-pc-windows-msvc
Thread model: posix
在powershell中
PS C:\Users\Sunrise> clang --version
clang version 18.1.7
Target: x86_64-pc-windows-msvc
Thread model: posix
Version vfox 0.5.3 (installed using scoop) OS Windows 11
Describe the bug After running
vfox use nodejs
in Git Bash, I can executenode
, but I get a "No such file or directory" error if I try to executenpm
. After looking inside the directory mentioned in the error message, I did find that if I instead runnpm.cmd
, it works.Example