Common System Errors - 常见错误号

Common System Errors - 常见错误号

  • EACCES (Permission denied)

    • An attempt was made to access a file in a way forbidden by its file access permissions.

    • 访问被拒绝

  • EADDRINUSE (Address already in use)

    • An attempt to bind a server (net, http, or https) to a local address failed due to another server on the local system already occupying that address.

    • 地址正在被使用(比如:端口号备占用)

  • EEXIST (File exists)

    • An existing file was the target of an operation that required that the target not exist.

    • 文件已经存在

  • EISDIR (Is a directory)

    • An operation expected a file, but the given pathname was a directory.

    • 给定的路径是目录

  • ENOENT (No such file or directory)

    • Commonly raised by fs operations to indicate that a component of the specified pathname does not exist -- no entity (file or directory) could be found by the given path.

    • 文件 或 目录不存在

  • ENOTDIR (Not a directory)

    • A component of the given pathname existed, but was not a directory as expected. Commonly raised by fs.readdir.

    • 给定的路径不是目录 

 

posted @ 2019-03-27 15:38  xx_sprog  阅读(1335)  评论(0)    收藏  举报