simonxxx

Results comments of simonxxx

1. 移除以下代码:./server/app.js ``` app.use(express.static(path.resolve(__dirname,'../dist'))); app.get('*',(req,res)=>{ const html=fs.readFileSync(path.resolve(__dirname,'../dist/index.html'),'utf-8'); res.send(html); }); ``` 2. 在./server/app.js中const app=express();行下加上以下代码,以实现跨域: ``` app.all('*', function (req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "Content-Type,Content-Length, Authorization, Accept,X-Requested-With"); res.header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS"); res.header("X-Powered-By", '...

I did every step by the official guide, then this issue occurs. I tried to remove `export DOCKER_HOST=tcp://localhost:2735` from `~/.zshrc` of my WSL Ubuntu, and then restarted terminal, after that,...

Please try these solutions that could help you guys: - https://github.com/microsoft/WSL/issues/4150 - https://github.com/shayne/wsl2-hacks

Maybe these two solutions can help you: 1. https://github.com/shayne/wsl2-hacks 2. [issue#4150](https://github.com/microsoft/WSL/issues/4150)

Please try to upgrade your Window 10 OS to build 19041 first, then try to install Windows Subsystem for Linux?

> https://github.com/shayne/wsl2-hacks Maybe this tool can help you.

Why not? My WSL2 can access my Win10 ip on my side. ``` # my win10 ip address 无线局域网适配器 WLAN: 连接特定的 DNS 后缀 . . . . . . ....

And this tool can help you to fix the issue you mentioned. > https://github.com/shayne/wsl2-hacks

@rescenic Thanks a lot for your solution, it works on my side after I looked so many ways to fix this issue.

I've encountered the same issue, and retried many times, but some dependencies can be restored successfully, some cannot, how can i fix this? ![图片](https://user-images.githubusercontent.com/5940103/80335678-a1848300-8887-11ea-9149-2cf80b59ceb6.png)