Error Code Portal
Node.jsNode.jsError code

ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY

fs cp symlink to subdirectory

Code ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY · An issue reported by Node.js.

When using fs.cp(), a symlink in dest pointed to a subdirectory of src.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.