简体   繁体   English

运行 Ubuntu 20.04 时,在 VSCode 终端中使用启动命令会出现“权限被拒绝”错误

[英]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.

相关问题 VSCODE 在尝试调试 javascript 时出错:“vscode listen eacces: permission denied 127.0.0.1:53942” - VSCODE gives error, when trying to debug javascript: "vscode listen eacces: permission denied 127.0.0.1:53942" 在Ubuntu终端上运行JavaScript不会产生任何输出 - Running JavaScript on Ubuntu terminal gives no output 使用window.location重新加载页面时,IE11给出“ SCRIPT70:权限被拒绝”错误 - IE11 gives a “SCRIPT70: Permission denied” error when using window.location to reload the page 在流星上使用微信js SDK时权限被拒绝错误 - permission denied error when using wechat js sdk on meteor 使用XDomainRequest调用跨域AJAX时权限被拒绝错误 - Permission denied error when invoking cross domain AJAX using XDomainRequest 错误:EACCES,命令#yo angular中的权限被拒绝 - Error: EACCES, permission denied in command #yo angular babel 命令在终端中运行时转换但运行脚本以错误结束 - babel command converts when run in terminal but running the script ends in error 当我尝试在文本编辑器上将节点合并到我的终端时,权限被拒绝 - Permission denied when I tried to incorporate node to my terminal on texteditor Components.classes给出“错误:拒绝权限访问属性'类'” - Components.classes gives “Error: Permission denied to access property 'classes'” VsCode 未在 Ubuntu 上运行 - VsCode not running on Ubuntu
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM