Error Code Portal
Node.jsNode.jsError code

ENOTDIR

Not a directory

Code ENOTDIR · An issue reported by Node.js.

ENOTDIR (Not a directory): A component of the given pathname existed, but was not a directory as expected. Commonly raised by fs.readdir.

Troubleshooting and diagnostic links

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