我正在尝试在VS Code的WSL终端中运行一个express服务器。
然而,每当我运行npm run dev
命令时,都会出现以下错误:
'\\wsl$\Ubuntu\home\simao\legalize-backend'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
我猜这可能与从Windows到WSL目录中的文件夹的路径有关。
哪个是正确的路径格式或者说我该如何使这个路径有效?
经过搜索,我发现您可以......
You can solve this problem(UNC Paths not supported) by mapping a
normal drive letter to the path that has the UNC path.
但是我如何将普通的驱动器映射到路径?
sudo apt install npm
安装npm解决了问题。 - undefined