Error Code Portal
Node.jsNode.jsError code

ERR_FS_CP_NON_DIR_TO_DIR

fs cp non dir to dir

Code ERR_FS_CP_NON_DIR_TO_DIR · An issue reported by Node.js.

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

Troubleshooting and diagnostic links

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