[英]When running Ubuntu 20.04, using start command in the VSCode terminal gives "Permission Denied" error
I am trying to learn how to use CLI and am very new to Javascript, so my apologies in advance.我正在尝试学习如何使用 CLI,并且对 Javascript 非常陌生,所以我提前道歉。
I'm running WSL Ubuntu for a class and trying to code in VSCode.我正在为 class 运行 WSL Ubuntu 并尝试在 VSCode 中进行编码。 I'm running into an error where I want to open the index.html file in my google chrome browser using the CLI so I figure I should use the 'start' command.
我遇到了一个错误,我想使用 CLI 在我的 google chrome 浏览器中打开 index.html 文件,所以我想我应该使用“开始”命令。 I type into the VSCode terminal 'start index.html' and receive the following error:
我在 VSCode 终端中输入“start index.html”并收到以下错误:
/mnt/c/MinGW/msys/1.0/bin/cmd: 8: : Permission denied /mnt/c/MinGW/msys/1.0/bin/cmd: 8: : 权限被拒绝
My research tells me I need to use chmod somewhere but I'm at a loss of where or exactly what I should be doing with it.我的研究告诉我,我需要在某个地方使用 chmod,但我不知道应该在哪里或确切地用它做什么。
Thanks谢谢
If you use WSL better source directory use better in WSL path.如果您使用 WSL 更好的源目录,则在 WSL 路径中使用更好。
My case is all working directory in WSL, and Termial start in WSL $home.我的情况是 WSL 中的所有工作目录,而 Termial 从 WSL $home 开始。 ex) git, npm, python, php etc. I just install all in WSL.
例如)git、npm、python、php 等全部安装在 WSL 中。
even If can access able windows folder will be slow.即使可以访问 windows 文件夹也会很慢。
my recommand is all command or tool install in WSL also work directory我的建议是 WSL 中的所有命令或工具安装也是工作目录
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.