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

I receive the following error when trying to rename a folder in VS Code on Windows.

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'

Error



Solution 1:[1]

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

cd ".."

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1