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 use和pushd两种方法来解决,但都没起到效果。尤其是用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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 12:44:09