Error Code Portal
Node.jsNode.jsError code

ERR_FS_CP_DIR_TO_NON_DIR

fs cp dir to non dir

Code ERR_FS_CP_DIR_TO_NON_DIR · An issue reported by Node.js.

An attempt was made to copy a directory to a non-directory (file, symlink, etc.) using fs.cp().

Troubleshooting and diagnostic links

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