简体   繁体   English

错误(错误:EPERM:不允许操作,重命名“路径”)

[英]Error (Error: EPERM: operation not permitted, rename 'path')

I receive the following error when trying to rename a folder in VS Code on Windows.尝试在 Windows 上重命名 VS Code 中的文件夹时收到以下错误。

When I try to rename a folder, I get the following error that pops up in the bottom right corner:当我尝试重命名文件夹时,我在右下角弹出以下错误:

Error: EPERM operation not permitted, rename 'path'

错误

Try running that from a command-line interface尝试从命令行界面运行它

Rename  dir_oldname  dir_newname

If this doesn't work try increasing the permissions of the folder, then rerunning the thing!如果这不起作用,请尝试增加文件夹的权限,然后重新运行该东西!

chmod -R 777 dir_name

As you are saying you are new to development, I'll also tell you how to open your command line正如您所说您是开发新手,我还将告诉您如何打开命令行

You must have an app named command prompt (Windows) or terminal (mac), open the application, and write the following into the window before executing anything您必须有一个名为命令提示符 (Windows) 或终端 (mac) 的应用程序,打开应用程序,然后在执行任何操作之前将以下内容写入 window

cd ".."

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM