You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

WSL 2中运行npm项目遇UNC路径不支持及net use映射失败问题求助

WSL 2中运行npm项目遇UNC路径不支持及net use映射失败问题求助

我现在在WSL(Ubuntu 20.04)环境里运行一个npm项目,但启动时总是弹出以下错误提示:

CMD.EXE was started with the above path as the current folder.

UNC paths are not supported. Defaulting to Windows folder.

我已经尝试过用net usepushd两种方法来解决,但都没起到效果。尤其是用net use映射路径的时候,还出现了新的错误:

C:\Windows\system32>net use X: \\wsl.localhost\Ubuntu-20.04\home\webtrunk\web-trunk

System error 67.

The network name was not found.

有没有大佬能帮忙分析下问题出在哪,该怎么解决呀?

备注:内容来源于stack exchange,提问作者gcriterium

火山引擎 最新活动