Error eisdir illegal operation on a directory read

When running yarn install command, I get the error: An unexpected error occurred: "EISDIR: illegal operation on a directory, read". yarn-error.log: Arguments: /usr/local/Cellar/node/8.4.0...

When running yarn install command, I get the error:
An unexpected error occurred: "EISDIR: illegal operation on a directory, read".

yarn-error.log:

Arguments: 
  /usr/local/Cellar/node/8.4.0/bin/node /usr/local/Cellar/yarn/1.0.1/libexec/bin/yarn.js

PATH: 
  /Users/JohnCook/.rbenv/shims:/Users/JohnCook/.cargo/bin:/Users/JohnCook/Developer/demeter:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

Yarn version: 
  1.0.1

Node version: 
  8.4.0

Platform: 
  darwin x64

npm manifest: 
  {
    "name": "demeter",
    "version": "3.0.0-beta",
    "description": "Kubernetes project-level cluster management tool for AppOps and full-stack engineers",
    "repository": "https://github.com/neighborly/demeter",
    "author": "Neighborly <dev@neighborly.com>",
    "license": "UNLICENSED",
    "scripts": {
      "test": "jasmine-ts "spec/**/*.spec.ts"",
      "prettier": "./node_modules/.bin/prettier  --write --single-quote src/**/*.ts",
      "doc": "./node_modules/.bin/typedoc --name Demeter --listEmittedFiles --preserveConstEnums --out docs/typedoc"
    },
    "dependencies": {
      "axios": "^0.16.2",
      "colors": "^1.1.2",
      "commander": "^2.11.0",
      "dockerode": "^2.5.0",
      "lodash": "^4.17.4",
      "winston": "^2.3.1"
    },
    "devDependencies": {
      "@types/colors": "^1.1.3",
      "@types/commander": "^2.9.1",
      "@types/dockerode": "^2.4.3",
      "@types/glob": "^5.0.30",
      "@types/jasmine": "^2.5.53",
      "@types/lodash": "^4.14.70",
      "@types/node": "^8.0.25",
      "@types/winston": "^2.3.3",
      "jasmine-spec-reporter": "^4.1.1",
      "jasmine-ts": "^0.2.0",
      "prettier": "^1.5.3",
      "tslint": "^5.5.0",
      "tslint-config-prettier": "^1.3.0",
      "typedoc": "^0.8.0",
      "typescript": "^2.4.1"
    }
  }

yarn manifest: 
  No manifest

Lockfile: 
  # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
  # yarn lockfile v1
  
  
  "@types/colors@^1.1.3":
    version "1.1.3"
    resolved "https://registry.yarnpkg.com/@types/colors/-/colors-1.1.3.tgz#5413b0a7a1b16dd18be0e3fd57d2feecc81cc776"
  
  "@types/commander@^2.9.1":
    version "2.9.1"
    resolved "https://registry.yarnpkg.com/@types/commander/-/commander-2.9.1.tgz#d4e464425baf4685bd49dd233be11de9c00c0784"
    dependencies:
      "@types/node" "*"
  
  "@types/dockerode@^2.4.3":
    version "2.4.3"
    resolved "https://registry.yarnpkg.com/@types/dockerode/-/dockerode-2.4.3.tgz#45861557aa1161cd9f46352b15b954ab2f84defb"
    dependencies:
      "@types/node" "*"
  
  "@types/fs-extra@^4.0.0":
    version "4.0.0"
    resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-4.0.0.tgz#1dd742ad5c9bce308f7a52d02ebc01421bc9102f"
    dependencies:
      "@types/node" "*"
  
  "@types/glob@*":
    version "5.0.32"
    resolved "https://registry.yarnpkg.com/@types/glob/-/glob-5.0.32.tgz#aec5cfe987c72f099fdb1184452986aa506d5e8f"
    dependencies:
      "@types/minimatch" "*"
      "@types/node" "*"
  
  "@types/glob@^5.0.30":
    version "5.0.30"
    resolved "https://registry.yarnpkg.com/@types/glob/-/glob-5.0.30.tgz#1026409c5625a8689074602808d082b2867b8a51"
    dependencies:
      "@types/minimatch" "*"
      "@types/node" "*"
  
  "@types/handlebars@^4.0.31":
    version "4.0.36"
    resolved "https://registry.yarnpkg.com/@types/handlebars/-/handlebars-4.0.36.tgz#ff57c77fa1ab6713bb446534ddc4d979707a3a79"
  
  "@types/highlight.js@^9.1.8":
    version "9.1.10"
    resolved "https://registry.yarnpkg.com/@types/highlight.js/-/highlight.js-9.1.10.tgz#b621f809cd9573b80992b90cffc5788208e3069c"
  
  "@types/jasmine@^2.5.53":
    version "2.5.53"
    resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-2.5.53.tgz#4e0cefad09df5ec48c8dd40433512f84b1568d61"
  
  "@types/lodash@^4.14.37":
    version "4.14.74"
    resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.74.tgz#ac3bd8db988e7f7038e5d22bd76a7ba13f876168"
  
  "@types/lodash@^4.14.70":
    version "4.14.70"
    resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.70.tgz#37bda4acfb3bb79143009cc9d00abd559f7dca30"
  
  "@types/marked@0.0.28":
    version "0.0.28"
    resolved "https://registry.yarnpkg.com/@types/marked/-/marked-0.0.28.tgz#44ba754e9fa51432583e8eb30a7c4dd249b52faa"
  
  "@types/minimatch@*", "@types/minimatch@^2.0.29":
    version "2.0.29"
    resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-2.0.29.tgz#5002e14f75e2d71e564281df0431c8c1b4a2a36a"
  
  "@types/node@*":
    version "8.0.14"
    resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.14.tgz#4a19dc6bb61d16c01cbadc7b30ac23518fff176b"
  
  "@types/node@^8.0.25":
    version "8.0.25"
    resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.25.tgz#66ecaf4df93f5281b48427ee96fbcdfc4f0cdce1"
  
  "@types/shelljs@^0.7.0":
    version "0.7.4"
    resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.4.tgz#137b5f31306eaff4de120ffe5b9d74b297809cfc"
    dependencies:
      "@types/glob" "*"
      "@types/node" "*"
  
  "@types/winston@^2.3.3":
    version "2.3.3"
    resolved "https://registry.yarnpkg.com/@types/winston/-/winston-2.3.3.tgz#f3eeea27c02f08aaeb60e535804b235f8378eff4"
    dependencies:
      "@types/node" "*"
  
  JSONStream@0.10.0:
    version "0.10.0"
    resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-0.10.0.tgz#74349d0d89522b71f30f0a03ff9bd20ca6f12ac0"
    dependencies:
      jsonparse "0.0.5"
      through ">=2.2.7 <3"
  
  align-text@^0.1.1, align-text@^0.1.3:
    version "0.1.4"
    resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117"
    dependencies:
      kind-of "^3.0.2"
      longest "^1.0.1"
      repeat-string "^1.5.2"
  
  amdefine@>=0.0.4:
    version "1.0.1"
    resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
  
  ansi-regex@^2.0.0:
    version "2.1.1"
    resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
  
  ansi-regex@^3.0.0:
    version "3.0.0"
    resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998"
  
  ansi-styles@^2.2.1:
    version "2.2.1"
    resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
  
  ansi-styles@^3.1.0:
    version "3.1.0"
    resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.1.0.tgz#09c202d5c917ec23188caa5c9cb9179cd9547750"
    dependencies:
      color-convert "^1.0.0"
  
  arrify@^1.0.0:
    version "1.0.1"
    resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
  
  async@^1.4.0:
    version "1.5.2"
    resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
  
  async@~1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/async/-/async-1.0.0.tgz#f8fc04ca3a13784ade9e1641af98578cfbd647a9"
  
  axios@^0.16.2:
    version "0.16.2"
    resolved "https://registry.yarnpkg.com/axios/-/axios-0.16.2.tgz#ba4f92f17167dfbab40983785454b9ac149c3c6d"
    dependencies:
      follow-redirects "^1.2.3"
      is-buffer "^1.1.5"
  
  babel-code-frame@^6.22.0:
    version "6.22.0"
    resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4"
    dependencies:
      chalk "^1.1.0"
      esutils "^2.0.2"
      js-tokens "^3.0.0"
  
  balanced-match@^1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
  
  bl@^1.0.0:
    version "1.2.1"
    resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.1.tgz#cac328f7bee45730d404b692203fcb590e172d5e"
    dependencies:
      readable-stream "^2.0.5"
  
  brace-expansion@^1.1.7:
    version "1.1.8"
    resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292"
    dependencies:
      balanced-match "^1.0.0"
      concat-map "0.0.1"
  
  builtin-modules@^1.0.0:
    version "1.1.1"
    resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
  
  camelcase@^1.0.2:
    version "1.2.1"
    resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39"
  
  camelcase@^4.1.0:
    version "4.1.0"
    resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"
  
  center-align@^0.1.1:
    version "0.1.3"
    resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad"
    dependencies:
      align-text "^0.1.3"
      lazy-cache "^1.0.3"
  
  chalk@^1.1.0:
    version "1.1.3"
    resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
    dependencies:
      ansi-styles "^2.2.1"
      escape-string-regexp "^1.0.2"
      has-ansi "^2.0.0"
      strip-ansi "^3.0.0"
      supports-color "^2.0.0"
  
  chalk@^2.0.0:
    version "2.0.1"
    resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.0.1.tgz#dbec49436d2ae15f536114e76d14656cdbc0f44d"
    dependencies:
      ansi-styles "^3.1.0"
      escape-string-regexp "^1.0.5"
      supports-color "^4.0.0"
  
  cliui@^2.1.0:
    version "2.1.0"
    resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1"
    dependencies:
      center-align "^0.1.1"
      right-align "^0.1.1"
      wordwrap "0.0.2"
  
  cliui@^3.2.0:
    version "3.2.0"
    resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d"
    dependencies:
      string-width "^1.0.1"
      strip-ansi "^3.0.1"
      wrap-ansi "^2.0.0"
  
  code-point-at@^1.0.0:
    version "1.1.0"
    resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
  
  color-convert@^1.0.0:
    version "1.9.0"
    resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.0.tgz#1accf97dd739b983bf994d56fec8f95853641b7a"
    dependencies:
      color-name "^1.1.1"
  
  color-name@^1.1.1:
    version "1.1.2"
    resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.2.tgz#5c8ab72b64bd2215d617ae9559ebb148475cf98d"
  
  colors@1.0.x:
    version "1.0.3"
    resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b"
  
  colors@1.1.2, colors@^1.1.2:
    version "1.1.2"
    resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
  
  commander@^2.11.0, commander@^2.9.0:
    version "2.11.0"
    resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563"
  
  concat-map@0.0.1:
    version "0.0.1"
    resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
  
  concat-stream@~1.5.1:
    version "1.5.2"
    resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.5.2.tgz#708978624d856af41a5a741defdd261da752c266"
    dependencies:
      inherits "~2.0.1"
      readable-stream "~2.0.0"
      typedarray "~0.0.5"
  
  core-util-is@~1.0.0:
    version "1.0.2"
    resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
  
  cross-spawn@^4.0.0:
    version "4.0.2"
    resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41"
    dependencies:
      lru-cache "^4.0.1"
      which "^1.2.9"
  
  cycle@1.0.x:
    version "1.0.3"
    resolved "https://registry.yarnpkg.com/cycle/-/cycle-1.0.3.tgz#21e80b2be8580f98b468f379430662b046c34ad2"
  
  debug@^2.4.5, debug@^2.6.0:
    version "2.6.8"
    resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc"
    dependencies:
      ms "2.0.0"
  
  decamelize@^1.0.0, decamelize@^1.1.1:
    version "1.2.0"
    resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
  
  diff@^3.1.0, diff@^3.2.0:
    version "3.3.0"
    resolved "https://registry.yarnpkg.com/diff/-/diff-3.3.0.tgz#056695150d7aa93237ca7e378ac3b1682b7963b9"
  
  docker-modem@^1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/docker-modem/-/docker-modem-1.0.0.tgz#cd7f43e209d7a4cff28a2628bae6381414bd8b8b"
    dependencies:
      JSONStream "0.10.0"
      debug "^2.6.0"
      readable-stream "~1.0.26-4"
      split-ca "^1.0.0"
  
  dockerode@^2.5.0:
    version "2.5.0"
    resolved "https://registry.yarnpkg.com/dockerode/-/dockerode-2.5.0.tgz#3fb1ff0e14b6901d92abff75a8a5440569f0538b"
    dependencies:
      concat-stream "~1.5.1"
      docker-modem "^1.0.0"
      tar-fs "~1.12.0"
  
  end-of-stream@^1.0.0, end-of-stream@^1.1.0:
    version "1.4.0"
    resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.0.tgz#7a90d833efda6cfa6eac0f4949dbb0fad3a63206"
    dependencies:
      once "^1.4.0"
  
  error-ex@^1.2.0:
    version "1.3.1"
    resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc"
    dependencies:
      is-arrayish "^0.2.1"
  
  escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
    version "1.0.5"
    resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
  
  esutils@^2.0.2:
    version "2.0.2"
    resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
  
  execa@^0.5.0:
    version "0.5.1"
    resolved "https://registry.yarnpkg.com/execa/-/execa-0.5.1.tgz#de3fb85cb8d6e91c85bcbceb164581785cb57b36"
    dependencies:
      cross-spawn "^4.0.0"
      get-stream "^2.2.0"
      is-stream "^1.1.0"
      npm-run-path "^2.0.0"
      p-finally "^1.0.0"
      signal-exit "^3.0.0"
      strip-eof "^1.0.0"
  
  exit@^0.1.2:
    version "0.1.2"
    resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c"
  
  eyes@0.1.x:
    version "0.1.8"
    resolved "https://registry.yarnpkg.com/eyes/-/eyes-0.1.8.tgz#62cf120234c683785d902348a800ef3e0cc20bc0"
  
  find-up@^2.0.0:
    version "2.1.0"
    resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7"
    dependencies:
      locate-path "^2.0.0"
  
  follow-redirects@^1.2.3:
    version "1.2.4"
    resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.2.4.tgz#355e8f4d16876b43f577b0d5ce2668b9723214ea"
    dependencies:
      debug "^2.4.5"
  
  fs-extra@^4.0.0:
    version "4.0.1"
    resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.1.tgz#7fc0c6c8957f983f57f306a24e5b9ddd8d0dd880"
    dependencies:
      graceful-fs "^4.1.2"
      jsonfile "^3.0.0"
      universalify "^0.1.0"
  
  fs.realpath@^1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
  
  get-caller-file@^1.0.1:
    version "1.0.2"
    resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5"
  
  get-stream@^2.2.0:
    version "2.3.1"
    resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-2.3.1.tgz#5f38f93f346009666ee0150a054167f91bdd95de"
    dependencies:
      object-assign "^4.0.1"
      pinkie-promise "^2.0.0"
  
  glob@^7.0.0, glob@^7.0.6, glob@^7.1.1:
    version "7.1.2"
    resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
    dependencies:
      fs.realpath "^1.0.0"
      inflight "^1.0.4"
      inherits "2"
      minimatch "^3.0.4"
      once "^1.3.0"
      path-is-absolute "^1.0.0"
  
  graceful-fs@^4.1.2, graceful-fs@^4.1.6:
    version "4.1.11"
    resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
  
  handlebars@^4.0.6:
    version "4.0.10"
    resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.10.tgz#3d30c718b09a3d96f23ea4cc1f403c4d3ba9ff4f"
    dependencies:
      async "^1.4.0"
      optimist "^0.6.1"
      source-map "^0.4.4"
    optionalDependencies:
      uglify-js "^2.6"
  
  has-ansi@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
    dependencies:
      ansi-regex "^2.0.0"
  
  has-flag@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51"
  
  highlight.js@^9.0.0:
    version "9.12.0"
    resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.12.0.tgz#e6d9dbe57cbefe60751f02af336195870c90c01e"
  
  hosted-git-info@^2.1.4:
    version "2.5.0"
    resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c"
  
  inflight@^1.0.4:
    version "1.0.6"
    resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
    dependencies:
      once "^1.3.0"
      wrappy "1"
  
  inherits@2, inherits@~2.0.1:
    version "2.0.3"
    resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
  
  interpret@^1.0.0:
    version "1.0.3"
    resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.3.tgz#cbc35c62eeee73f19ab7b10a801511401afc0f90"
  
  invert-kv@^1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
  
  is-arrayish@^0.2.1:
    version "0.2.1"
    resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
  
  is-buffer@^1.1.5:
    version "1.1.5"
    resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc"
  
  is-builtin-module@^1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe"
    dependencies:
      builtin-modules "^1.0.0"
  
  is-fullwidth-code-point@^1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
    dependencies:
      number-is-nan "^1.0.0"
  
  is-fullwidth-code-point@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f"
  
  is-stream@^1.1.0:
    version "1.1.0"
    resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
  
  isarray@0.0.1:
    version "0.0.1"
    resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
  
  isarray@~1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
  
  isexe@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
  
  isstream@0.1.x:
    version "0.1.2"
    resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
  
  jasmine-core@~2.6.0:
    version "2.6.4"
    resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.6.4.tgz#dec926cd0a9fa287fb6db5c755fa487e74cecac5"
  
  jasmine-spec-reporter@^4.1.1:
    version "4.1.1"
    resolved "https://registry.yarnpkg.com/jasmine-spec-reporter/-/jasmine-spec-reporter-4.1.1.tgz#5a6d58ab5d61bea7309fbc279239511756b1b588"
    dependencies:
      colors "1.1.2"
  
  jasmine-ts@^0.2.0:
    version "0.2.0"
    resolved "https://registry.yarnpkg.com/jasmine-ts/-/jasmine-ts-0.2.0.tgz#b7a4d40e5ea2c829d10b1cbb45bea743e9475c6d"
    dependencies:
      jasmine "^2.6.0"
      ts-node "^3.2.0"
      typescript "^2.4.1"
      yargs "^8.0.2"
  
  jasmine@^2.6.0:
    version "2.6.0"
    resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-2.6.0.tgz#6b22e70883e8e589d456346153b4d206ddbe217f"
    dependencies:
      exit "^0.1.2"
      glob "^7.0.6"
      jasmine-core "~2.6.0"
  
  js-tokens@^3.0.0:
    version "3.0.2"
    resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
  
  jsonfile@^3.0.0:
    version "3.0.1"
    resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-3.0.1.tgz#a5ecc6f65f53f662c4415c7675a0331d0992ec66"
    optionalDependencies:
      graceful-fs "^4.1.6"
  
  jsonparse@0.0.5:
    version "0.0.5"
    resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-0.0.5.tgz#330542ad3f0a654665b778f3eb2d9a9fa507ac64"
  
  kind-of@^3.0.2:
    version "3.2.2"
    resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
    dependencies:
      is-buffer "^1.1.5"
  
  lazy-cache@^1.0.3:
    version "1.0.4"
    resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"
  
  lcid@^1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835"
    dependencies:
      invert-kv "^1.0.0"
  
  load-json-file@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8"
    dependencies:
      graceful-fs "^4.1.2"
      parse-json "^2.2.0"
      pify "^2.0.0"
      strip-bom "^3.0.0"
  
  locate-path@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
    dependencies:
      p-locate "^2.0.0"
      path-exists "^3.0.0"
  
  lodash@^4.13.1, lodash@^4.17.4:
    version "4.17.4"
    resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
  
  longest@^1.0.1:
    version "1.0.1"
    resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"
  
  lru-cache@^4.0.1:
    version "4.1.1"
    resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55"
    dependencies:
      pseudomap "^1.0.2"
      yallist "^2.1.2"
  
  make-error@^1.1.1:
    version "1.3.0"
    resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.0.tgz#52ad3a339ccf10ce62b4040b708fe707244b8b96"
  
  marked@^0.3.5:
    version "0.3.6"
    resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7"
  
  mem@^1.1.0:
    version "1.1.0"
    resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76"
    dependencies:
      mimic-fn "^1.0.0"
  
  mimic-fn@^1.0.0:
    version "1.1.0"
    resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18"
  
  minimatch@^3.0.0, minimatch@^3.0.4:
    version "3.0.4"
    resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
    dependencies:
      brace-expansion "^1.1.7"
  
  minimist@0.0.8:
    version "0.0.8"
    resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
  
  minimist@^1.2.0:
    version "1.2.0"
    resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
  
  minimist@~0.0.1:
    version "0.0.10"
    resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"
  
  mkdirp@^0.5.0, mkdirp@^0.5.1:
    version "0.5.1"
    resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
    dependencies:
      minimist "0.0.8"
  
  ms@2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
  
  normalize-package-data@^2.3.2:
    version "2.4.0"
    resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f"
    dependencies:
      hosted-git-info "^2.1.4"
      is-builtin-module "^1.0.0"
      semver "2 || 3 || 4 || 5"
      validate-npm-package-license "^3.0.1"
  
  npm-run-path@^2.0.0:
    version "2.0.2"
    resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
    dependencies:
      path-key "^2.0.0"
  
  number-is-nan@^1.0.0:
    version "1.0.1"
    resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
  
  object-assign@^4.0.1:
    version "4.1.1"
    resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
  
  once@^1.3.0, once@^1.3.1, once@^1.4.0:
    version "1.4.0"
    resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
    dependencies:
      wrappy "1"
  
  optimist@^0.6.1:
    version "0.6.1"
    resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
    dependencies:
      minimist "~0.0.1"
      wordwrap "~0.0.2"
  
  os-locale@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.0.0.tgz#15918ded510522b81ee7ae5a309d54f639fc39a4"
    dependencies:
      execa "^0.5.0"
      lcid "^1.0.0"
      mem "^1.1.0"
  
  p-finally@^1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
  
  p-limit@^1.1.0:
    version "1.1.0"
    resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.1.0.tgz#b07ff2d9a5d88bec806035895a2bab66a27988bc"
  
  p-locate@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43"
    dependencies:
      p-limit "^1.1.0"
  
  parse-json@^2.2.0:
    version "2.2.0"
    resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9"
    dependencies:
      error-ex "^1.2.0"
  
  path-exists@^3.0.0:
    version "3.0.0"
    resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515"
  
  path-is-absolute@^1.0.0:
    version "1.0.1"
    resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
  
  path-key@^2.0.0:
    version "2.0.1"
    resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
  
  path-parse@^1.0.5:
    version "1.0.5"
    resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"
  
  path-type@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73"
    dependencies:
      pify "^2.0.0"
  
  pify@^2.0.0:
    version "2.3.0"
    resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
  
  pinkie-promise@^2.0.0:
    version "2.0.1"
    resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa"
    dependencies:
      pinkie "^2.0.0"
  
  pinkie@^2.0.0:
    version "2.0.4"
    resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
  
  prettier@^1.5.3:
    version "1.5.3"
    resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.5.3.tgz#59dadc683345ec6b88f88b94ed4ae7e1da394bfe"
  
  process-nextick-args@~1.0.6:
    version "1.0.7"
    resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"
  
  progress@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f"
  
  pseudomap@^1.0.2:
    version "1.0.2"
    resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
  
  pump@^1.0.0:
    version "1.0.2"
    resolved "https://registry.yarnpkg.com/pump/-/pump-1.0.2.tgz#3b3ee6512f94f0e575538c17995f9f16990a5d51"
    dependencies:
      end-of-stream "^1.1.0"
      once "^1.3.1"
  
  read-pkg-up@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be"
    dependencies:
      find-up "^2.0.0"
      read-pkg "^2.0.0"
  
  read-pkg@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8"
    dependencies:
      load-json-file "^2.0.0"
      normalize-package-data "^2.3.2"
      path-type "^2.0.0"
  
  readable-stream@^2.0.0, readable-stream@^2.0.5, readable-stream@~2.0.0:
    version "2.0.6"
    resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.0.6.tgz#8f90341e68a53ccc928788dacfcd11b36eb9b78e"
    dependencies:
      core-util-is "~1.0.0"
      inherits "~2.0.1"
      isarray "~1.0.0"
      process-nextick-args "~1.0.6"
      string_decoder "~0.10.x"
      util-deprecate "~1.0.1"
  
  readable-stream@~1.0.26-4:
    version "1.0.34"
    resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c"
    dependencies:
      core-util-is "~1.0.0"
      inherits "~2.0.1"
      isarray "0.0.1"
      string_decoder "~0.10.x"
  
  rechoir@^0.6.2:
    version "0.6.2"
    resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
    dependencies:
      resolve "^1.1.6"
  
  repeat-string@^1.5.2:
    version "1.6.1"
    resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
  
  require-directory@^2.1.1:
    version "2.1.1"
    resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
  
  require-main-filename@^1.0.1:
    version "1.0.1"
    resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"
  
  resolve@^1.1.6:
    version "1.4.0"
    resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86"
    dependencies:
      path-parse "^1.0.5"
  
  resolve@^1.3.2:
    version "1.3.3"
    resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.3.tgz#655907c3469a8680dc2de3a275a8fdd69691f0e5"
    dependencies:
      path-parse "^1.0.5"
  
  right-align@^0.1.1:
    version "0.1.3"
    resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef"
    dependencies:
      align-text "^0.1.1"
  
  "semver@2 || 3 || 4 || 5", semver@^5.3.0:
    version "5.3.0"
    resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
  
  set-blocking@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
  
  shelljs@^0.7.0:
    version "0.7.8"
    resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
    dependencies:
      glob "^7.0.0"
      interpret "^1.0.0"
      rechoir "^0.6.2"
  
  signal-exit@^3.0.0:
    version "3.0.2"
    resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
  
  source-map-support@^0.4.0:
    version "0.4.15"
    resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.15.tgz#03202df65c06d2bd8c7ec2362a193056fef8d3b1"
    dependencies:
      source-map "^0.5.6"
  
  source-map@^0.4.4:
    version "0.4.4"
    resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b"
    dependencies:
      amdefine ">=0.0.4"
  
  source-map@^0.5.6:
    version "0.5.6"
    resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412"
  
  source-map@~0.5.1:
    version "0.5.7"
    resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
  
  spdx-correct@~1.0.0:
    version "1.0.2"
    resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40"
    dependencies:
      spdx-license-ids "^1.0.2"
  
  spdx-expression-parse@~1.0.0:
    version "1.0.4"
    resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c"
  
  spdx-license-ids@^1.0.2:
    version "1.2.2"
    resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57"
  
  split-ca@^1.0.0:
    version "1.0.1"
    resolved "https://registry.yarnpkg.com/split-ca/-/split-ca-1.0.1.tgz#6c83aff3692fa61256e0cd197e05e9de157691a6"
  
  stack-trace@0.0.x:
    version "0.0.10"
    resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
  
  string-width@^1.0.1:
    version "1.0.2"
    resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
    dependencies:
      code-point-at "^1.0.0"
      is-fullwidth-code-point "^1.0.0"
      strip-ansi "^3.0.0"
  
  string-width@^2.0.0:
    version "2.1.0"
    resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.0.tgz#030664561fc146c9423ec7d978fe2457437fe6d0"
    dependencies:
      is-fullwidth-code-point "^2.0.0"
      strip-ansi "^4.0.0"
  
  string_decoder@~0.10.x:
    version "0.10.31"
    resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
  
  strip-ansi@^3.0.0, strip-ansi@^3.0.1:
    version "3.0.1"
    resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
    dependencies:
      ansi-regex "^2.0.0"
  
  strip-ansi@^4.0.0:
    version "4.0.0"
    resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f"
    dependencies:
      ansi-regex "^3.0.0"
  
  strip-bom@^3.0.0:
    version "3.0.0"
    resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
  
  strip-eof@^1.0.0:
    version "1.0.0"
    resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf"
  
  strip-json-comments@^2.0.0:
    version "2.0.1"
    resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
  
  supports-color@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
  
  supports-color@^4.0.0:
    version "4.2.0"
    resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.2.0.tgz#ad986dc7eb2315d009b4d77c8169c2231a684037"
    dependencies:
      has-flag "^2.0.0"
  
  tar-fs@~1.12.0:
    version "1.12.0"
    resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-1.12.0.tgz#a6a80553d8a54c73de1d0ae0e79de77035605e1d"
    dependencies:
      mkdirp "^0.5.0"
      pump "^1.0.0"
      tar-stream "^1.1.2"
  
  tar-stream@^1.1.2:
    version "1.5.4"
    resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.5.4.tgz#36549cf04ed1aee9b2a30c0143252238daf94016"
    dependencies:
      bl "^1.0.0"
      end-of-stream "^1.0.0"
      readable-stream "^2.0.0"
      xtend "^4.0.0"
  
  "through@>=2.2.7 <3":
    version "2.3.8"
    resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
  
  ts-node@^3.2.0:
    version "3.2.0"
    resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-3.2.0.tgz#9814f0c0141784900cf12fef1197ad4b7f4d23d1"
    dependencies:
      arrify "^1.0.0"
      chalk "^2.0.0"
      diff "^3.1.0"
      make-error "^1.1.1"
      minimist "^1.2.0"
      mkdirp "^0.5.1"
      source-map-support "^0.4.0"
      tsconfig "^6.0.0"
      v8flags "^2.0.11"
      yn "^2.0.0"
  
  tsconfig@^6.0.0:
    version "6.0.0"
    resolved "https://registry.yarnpkg.com/tsconfig/-/tsconfig-6.0.0.tgz#6b0e8376003d7af1864f8df8f89dd0059ffcd032"
    dependencies:
      strip-bom "^3.0.0"
      strip-json-comments "^2.0.0"
  
  tslib@^1.7.1:
    version "1.7.1"
    resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.7.1.tgz#bc8004164691923a79fe8378bbeb3da2017538ec"
  
  tslint-config-prettier@^1.3.0:
    version "1.3.0"
    resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.3.0.tgz#248997b8cdac1cd4953e05eb49129c0c6286cd89"
  
  tslint@^5.5.0:
    version "5.5.0"
    resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.5.0.tgz#10e8dab3e3061fa61e9442e8cee3982acf20a6aa"
    dependencies:
      babel-code-frame "^6.22.0"
      colors "^1.1.2"
      commander "^2.9.0"
      diff "^3.2.0"
      glob "^7.1.1"
      minimatch "^3.0.4"
      resolve "^1.3.2"
      semver "^5.3.0"
      tslib "^1.7.1"
      tsutils "^2.5.1"
  
  tsutils@^2.5.1:
    version "2.6.1"
    resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.6.1.tgz#98ecf009594f4e4af884057be4cf41a450bc7637"
    dependencies:
      tslib "^1.7.1"
  
  typedarray@~0.0.5:
    version "0.0.6"
    resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
  
  typedoc-default-themes@^0.5.0:
    version "0.5.0"
    resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.5.0.tgz#6dc2433e78ed8bea8e887a3acde2f31785bd6227"
  
  typedoc@^0.8.0:
    version "0.8.0"
    resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.8.0.tgz#d7172bc6a29964f451b7609c005beadadefe2361"
    dependencies:
      "@types/fs-extra" "^4.0.0"
      "@types/handlebars" "^4.0.31"
      "@types/highlight.js" "^9.1.8"
      "@types/lodash" "^4.14.37"
      "@types/marked" "0.0.28"
      "@types/minimatch" "^2.0.29"
      "@types/shelljs" "^0.7.0"
      fs-extra "^4.0.0"
      handlebars "^4.0.6"
      highlight.js "^9.0.0"
      lodash "^4.13.1"
      marked "^0.3.5"
      minimatch "^3.0.0"
      progress "^2.0.0"
      shelljs "^0.7.0"
      typedoc-default-themes "^0.5.0"
      typescript "2.4.1"
  
  typescript@2.4.1, typescript@^2.4.1:
    version "2.4.1"
    resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.1.tgz#c3ccb16ddaa0b2314de031e7e6fee89e5ba346bc"
  
  uglify-js@^2.6:
    version "2.8.29"
    resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd"
    dependencies:
      source-map "~0.5.1"
      yargs "~3.10.0"
    optionalDependencies:
      uglify-to-browserify "~1.0.0"
  
  uglify-to-browserify@~1.0.0:
    version "1.0.2"
    resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7"
  
  universalify@^0.1.0:
    version "0.1.1"
    resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7"
  
  user-home@^1.1.1:
    version "1.1.1"
    resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190"
  
  util-deprecate@~1.0.1:
    version "1.0.2"
    resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
  
  v8flags@^2.0.11:
    version "2.1.1"
    resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4"
    dependencies:
      user-home "^1.1.1"
  
  validate-npm-package-license@^3.0.1:
    version "3.0.1"
    resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc"
    dependencies:
      spdx-correct "~1.0.0"
      spdx-expression-parse "~1.0.0"
  
  which-module@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
  
  which@^1.2.9:
    version "1.2.14"
    resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5"
    dependencies:
      isexe "^2.0.0"
  
  window-size@0.1.0:
    version "0.1.0"
    resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d"
  
  winston@^2.3.1:
    version "2.3.1"
    resolved "https://registry.yarnpkg.com/winston/-/winston-2.3.1.tgz#0b48420d978c01804cf0230b648861598225a119"
    dependencies:
      async "~1.0.0"
      colors "1.0.x"
      cycle "1.0.x"
      eyes "0.1.x"
      isstream "0.1.x"
      stack-trace "0.0.x"
  
  wordwrap@0.0.2:
    version "0.0.2"
    resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"
  
  wordwrap@~0.0.2:
    version "0.0.3"
    resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
  
  wrap-ansi@^2.0.0:
    version "2.1.0"
    resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85"
    dependencies:
      string-width "^1.0.1"
      strip-ansi "^3.0.1"
  
  wrappy@1:
    version "1.0.2"
    resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
  
  xtend@^4.0.0:
    version "4.0.1"
    resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
  
  y18n@^3.2.1:
    version "3.2.1"
    resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41"
  
  yallist@^2.1.2:
    version "2.1.2"
    resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
  
  yargs-parser@^7.0.0:
    version "7.0.0"
    resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9"
    dependencies:
      camelcase "^4.1.0"
  
  yargs@^8.0.2:
    version "8.0.2"
    resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360"
    dependencies:
      camelcase "^4.1.0"
      cliui "^3.2.0"
      decamelize "^1.1.1"
      get-caller-file "^1.0.1"
      os-locale "^2.0.0"
      read-pkg-up "^2.0.0"
      require-directory "^2.1.1"
      require-main-filename "^1.0.1"
      set-blocking "^2.0.0"
      string-width "^2.0.0"
      which-module "^2.0.0"
      y18n "^3.2.1"
      yargs-parser "^7.0.0"
  
  yargs@~3.10.0:
    version "3.10.0"
    resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1"
    dependencies:
      camelcase "^1.0.2"
      cliui "^2.1.0"
      decamelize "^1.0.0"
      window-size "0.1.0"
  
  yn@^2.0.0:
    version "2.0.0"
    resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a"

Trace: 
  Error: EISDIR: illegal operation on a directory, read

package.json:

{
  "name": "demeter",
  "version": "3.0.0-beta",
  "description": "Management tool for AppOps and full-stack engineers",
  "repository": "https://github.com/neighborly/demeter",
  "author": "Neighborly <dev@neighborly.com>",
  "license": "UNLICENSED",
  "scripts": {
    "test": "jasmine-ts "spec/**/*.spec.ts"",
    "prettier": "./node_modules/.bin/prettier  --write --single-quote src/**/*.ts",
    "doc": "./node_modules/.bin/typedoc --name Demeter --listEmittedFiles --preserveConstEnums --out docs/typedoc"
  },
  "dependencies": {
    "axios": "^0.16.2",
    "colors": "^1.1.2",
    "commander": "^2.11.0",
    "dockerode": "^2.5.0",
    "lodash": "^4.17.4",
    "winston": "^2.3.1"
  },
  "devDependencies": {
    "@types/colors": "^1.1.3",
    "@types/commander": "^2.9.1",
    "@types/dockerode": "^2.4.3",
    "@types/glob": "^5.0.30",
    "@types/jasmine": "^2.5.53",
    "@types/lodash": "^4.14.70",
    "@types/node": "^8.0.25",
    "@types/winston": "^2.3.3",
    "jasmine-spec-reporter": "^4.1.1",
    "jasmine-ts": "^0.2.0",
    "prettier": "^1.5.3",
    "tslint": "^5.5.0",
    "tslint-config-prettier": "^1.3.0",
    "typedoc": "^0.8.0",
    "typescript": "^2.4.1"
  }
}

  • Yarn v1.0.1
  • Node v8.4.0
  • macOS Sierra 10.12.6

You will encounter various kinds of errors while developing Node.js
applications, but most can be avoided or easily mitigated with the right coding
practices. However, most of the information to fix these problems are currently
scattered across various GitHub issues and forum posts which could lead to
spending more time than necessary when seeking solutions.

Therefore, we’ve compiled this list of 15 common Node.js errors along with one
or more strategies to follow to fix each one. While this is not a comprehensive
list of all the errors you can encounter when developing Node.js applications,
it should help you understand why some of these common errors occur and feasible
solutions to avoid future recurrence.

🔭 Want to centralize and monitor your Node.js error logs?

Head over to Logtail and start ingesting your logs in 5 minutes.

1. ECONNRESET

ECONNRESET is a common exception that occurs when the TCP connection to
another server is closed abruptly, usually before a response is received. It can
be emitted when you attempt a request through a TCP connection that has already
been closed or when the connection is closed before a response is received
(perhaps in case of a timeout). This exception will usually
look like the following depending on your version of Node.js:

Output

Error: socket hang up
    at connResetException (node:internal/errors:691:14)
    at Socket.socketOnEnd (node:_http_client:466:23)
    at Socket.emit (node:events:532:35)
    at endReadableNT (node:internal/streams/readable:1346:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ECONNRESET'
}

If this exception occurs when making a request to another server, you should
catch it and decide how to handle it. For example, you can retry the request
immediately, or queue it for later. You can also investigate your timeout
settings if you’d like to wait longer for the request to be
completed.

On the other hand, if it is caused by a client deliberately closing an
unfulfilled request to your server, then you don’t need to do anything except
end the connection (res.end()), and stop any operations performed in
generating a response. You can detect if a client socket was destroyed through
the following:

app.get("/", (req, res) => {
  // listen for the 'close' event on the request
  req.on("close", () => {
    console.log("closed connection");
  });

  console.log(res.socket.destroyed); // true if socket is closed
});

2. ENOTFOUND

The ENOTFOUND exception occurs in Node.js when a connection cannot be
established to some host due to a DNS error. This usually occurs due to an
incorrect host value, or when localhost is not mapped correctly to
127.0.0.1. It can also occur when a domain goes down or no longer exists.
Here’s an example of how the error often appears in the Node.js console:

Output

Error: getaddrinfo ENOTFOUND http://localhost
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'http://localhost'
}

If you get this error in your Node.js application or while running a script, you
can try the following strategies to fix it:

Check the domain name

First, ensure that you didn’t make a typo while entering the domain name. You
can also use a tool like DNS Checker to confirm that
the domain is resolving successfully in your location or region.

Check the host value

If you’re using http.request() or https.request() methods from the standard
library, ensure that the host value in the options object contains only the
domain name or IP address of the server. It shouldn’t contain the protocol,
port, or request path (use the protocol, port, and path properties for
those values respectively).

// don't do this
const options = {
  host: 'http://example.com/path/to/resource',
};

// do this instead
const options = {
  host: 'example.com',
  path: '/path/to/resource',
};

http.request(options, (res) => {});

Check your localhost mapping

If you’re trying to connect to localhost, and the ENOTFOUND error is thrown,
it may mean that the localhost is missing in your hosts file. On Linux and
macOS, ensure that your /etc/hosts file contains the following entry:

You may need to flush your DNS cache afterward:

sudo killall -HUP mDNSResponder # macOS

On Linux, clearing the DNS cache depends on the distribution and caching service
in use. Therefore, do investigate the appropriate command to run on your system.

3. ETIMEDOUT

The ETIMEDOUT error is thrown by the Node.js runtime when a connection or HTTP
request is not closed properly after some time. You might encounter this error
from time to time if you configured a timeout on your
outgoing HTTP requests. The general solution to this issue is to catch the error
and repeat the request, preferably using an
exponential backoff
strategy so that a waiting period is added between subsequent retries until the
request eventually succeeds, or the maximum amount of retries is reached. If you
encounter this error frequently, try to investigate your request timeout
settings and choose a more appropriate value for the endpoint
if possible.

4. ECONNREFUSED

The ECONNREFUSED error is produced when a request is made to an endpoint but a
connection could not be established because the specified address wasn’t
reachable. This is usually caused by an inactive target service. For example,
the error below resulted from attempting to connect to http://localhost:8000
when no program is listening at that endpoint.

Error: connect ECONNREFUSED 127.0.0.1:8000
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16)
Emitted 'error' event on ClientRequest instance at:
    at Socket.socketErrorListener (node:_http_client:442:9)
    at Socket.emit (node:events:526:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 8000
}

The fix for this problem is to ensure that the target service is active and
accepting connections at the specified endpoint.

5. ERRADDRINUSE

This error is commonly encountered when starting or restarting a web server. It
indicates that the server is attempting to listen for connections at a port that
is already occupied by some other application.

Error: listen EADDRINUSE: address already in use :::3001
    at Server.setupListenHandle [as _listen2] (node:net:1330:16)
    at listenInCluster (node:net:1378:12)
    at Server.listen (node:net:1465:7)
    at Function.listen (/home/ayo/dev/demo/node_modules/express/lib/application.js:618:24)
    at Object.<anonymous> (/home/ayo/dev/demo/main.js:16:18)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
Emitted 'error' event on Server instance at:
    at emitErrorNT (node:net:1357:8)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'EADDRINUSE',
  errno: -98,
  syscall: 'listen',
  address: '::',
  port: 3001
}

The easiest fix for this error would be to configure your application to listen
on a different port (preferably by updating an environmental variable). However,
if you need that specific port that is in use, you can find out the process ID
of the application using it through the command below:

Output

COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
node    2902  ayo   19u  IPv6 781904      0t0  TCP *:3001 (LISTEN)

Afterward, kill the process by passing the PID value to the kill command:

After running the command above, the application will be forcefully closed
freeing up the desired port for your intended use.

6. EADDRNOTAVAIL

This error is similar to EADDRINUSE because it results from trying to run a
Node.js server at a specific port. It usually indicates a configuration issue
with your IP address, such as when you try to bind your server to a static IP:

const express = require('express');
const app = express();

const server = app.listen(3000, '192.168.0.101', function () {
  console.log('server listening at port 3000......');
});

Output

Error: listen EADDRNOTAVAIL: address not available 192.168.0.101:3000
    at Server.setupListenHandle [as _listen2] (node:net:1313:21)
    at listenInCluster (node:net:1378:12)
    at doListen (node:net:1516:7)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)
Emitted 'error' event on Server instance at:
    at emitErrorNT (node:net:1357:8)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'EADDRNOTAVAIL',
  errno: -99,
  syscall: 'listen',
  address: '192.168.0.101',
  port: 3000
}

To resolve this issue, ensure that you have the right IP address (it may
sometimes change), or you can bind to any or all IPs by using 0.0.0.0 as shown
below:

var server = app.listen(3000, '0.0.0.0', function () {
  console.log('server listening at port 3000......');
});

7. ECONNABORTED

The ECONNABORTED exception is thrown when an active network connection is
aborted by the server before reading from the request body or writing to the
response body has completed. The example below demonstrates how this problem can
occur in a Node.js program:

const express = require('express');
const app = express();
const path = require('path');

app.get('/', function (req, res, next) {
  res.sendFile(path.join(__dirname, 'new.txt'), null, (err) => {
    console.log(err);
  });
  res.end();
});

const server = app.listen(3000, () => {
  console.log('server listening at port 3001......');
});

Output

Error: Request aborted
    at onaborted (/home/ayo/dev/demo/node_modules/express/lib/response.js:1030:15)
    at Immediate._onImmediate (/home/ayo/dev/demo/node_modules/express/lib/response.js:1072:9)
    at processImmediate (node:internal/timers:466:21) {
  code: 'ECONNABORTED'
}

The problem here is that res.end() was called prematurely before
res.sendFile() has had a chance to complete due to the asynchronous nature of
the method. The solution here is to move res.end() into sendFile()‘s
callback function:

app.get('/', function (req, res, next) {
  res.sendFile(path.join(__dirname, 'new.txt'), null, (err) => {
    console.log(err);
    res.end();
  });
});

8. EHOSTUNREACH

An EHOSTUNREACH exception indicates that a TCP connection failed because the
underlying protocol software found no route to the network or host. It can also
be triggered when traffic is blocked by a firewall or in response to information
received by intermediate gateways or switching nodes. If you encounter this
error, you may need to check your operating system’s routing tables or firewall
setup to fix the problem.

9. EAI_AGAIN

Node.js throws an EAI_AGAIN error when a temporary failure in domain name
resolution occurs. A DNS lookup timeout that usually indicates a problem with
your network connection or your proxy settings. You can get this error when
trying to install an npm package:

Output

npm ERR! code EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/nestjs failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org

If you’ve determined that your internet connection is working correctly, then
you should investigate your DNS resolver settings (/etc/resolv.conf) or your
/etc/hosts file to ensure it is set up correctly.

10. ENOENT

This error is a straightforward one. It means «Error No Entity» and is raised
when a specified path (file or directory) does not exist in the filesystem. It
is most commonly encountered when performing an operation with the fs module
or running a script that expects a specific directory structure.

fs.open('non-existent-file.txt', (err, fd) => {
  if (err) {
    console.log(err);
  }
});

Output

[Error: ENOENT: no such file or directory, open 'non-existent-file.txt'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'non-existent-file.txt'
}

To fix this error, you either need to create the expected directory structure or
change the path so that the script looks in the correct directory.

11. EISDIR

If you encounter this error, the operation that raised it expected a file
argument but was provided with a directory.

// config is actually a directory
fs.readFile('config', (err, data) => {
  if (err) throw err;
  console.log(data);
});

Output

[Error: EISDIR: illegal operation on a directory, read] {
  errno: -21,
  code: 'EISDIR',
  syscall: 'read'
}

Fixing this error involves correcting the provided path so that it leads to a
file instead.

12. ENOTDIR

This error is the inverse of EISDIR. It means a file argument was supplied
where a directory was expected. To avoid this error, ensure that the provided
path leads to a directory and not a file.

fs.opendir('/etc/passwd', (err, _dir) => {
  if (err) throw err;
});

Output

[Error: ENOTDIR: not a directory, opendir '/etc/passwd'] {
  errno: -20,
  code: 'ENOTDIR',
  syscall: 'opendir',
  path: '/etc/passwd'
}

13. EACCES

The EACCES error is often encountered when trying to access a file in a way
that is forbidden by its access permissions. You may also encounter this error
when you’re trying to install a global NPM package (depending on how you
installed Node.js and npm), or when you try to run a server on a port lower
than 1024.

fs.readFile('/etc/sudoers', (err, data) => {
  if (err) throw err;
  console.log(data);
});

Output

[Error: EACCES: permission denied, open '/etc/sudoers'] {
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/etc/sudoers'
}

Essentially, this error indicates that the user executing the script does not
have the required permission to access a resource. A quick fix is to prefix the
script execution command with sudo so that it is executed as root, but this is
a bad idea
for security reasons.

The correct fix for this error is to give the user executing the script the
required permissions to access the resource through the chown command on Linux
in the case of a file or directory.

sudo chown -R $(whoami) /path/to/directory

If you encounter an EACCES error when trying to listen on a port lower than
1024, you can use a higher port and set up port forwarding through iptables.
The following command forwards HTTP traffic going to port 80 to port 8080
(assuming your application is listening on port 8080):

sudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

If you encounter EACCES errors when trying to install a global npm package,
it usually means that you installed the Node.js and npm versions found in your
system’s repositories. The recommended course of action is to uninstall those
versions and reinstall them through a Node environment manager like
NVM or Volta.

14. EEXIST

The EEXIST error is another filesystem error that is encountered whenever a
file or directory exists, but the attempted operation requires it not to exist.
For example, you will see this error when you attempt to create a directory that
already exists as shown below:

const fs = require('fs');

fs.mkdirSync('temp', (err) => {
  if (err) throw err;
});

Output

Error: EEXIST: file already exists, mkdir 'temp'
    at Object.mkdirSync (node:fs:1349:3)
    at Object.<anonymous> (/home/ayo/dev/demo/main.js:3:4)
    at Module._compile (node:internal/modules/cjs/loader:1099:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  errno: -17,
  syscall: 'mkdir',
  code: 'EEXIST',
  path: 'temp'
}

The solution here is to check if the path exists through fs.existsSync()
before attempting to create it:

const fs = require('fs');

if (!fs.existsSync('temp')) {
  fs.mkdirSync('temp', (err) => {
    if (err) throw err;
  });
}

15. EPERM

The EPERM error may be encountered in various scenarios, usually when
installing an npm package. It indicates that the operation being carried out
could not be completed due to permission issues. This error often indicates that
a write was attempted to a file that is in a read-only state although you may
sometimes encounter an EACCES error instead.

Here are some possible fixes you can try if you run into this problem:

  1. Close all instances of your editor before rerunning the command (maybe some
    files were locked by the editor).
  2. Clean the npm cache with npm cache clean --force.
  3. Close or disable your Anti-virus software if have one.
  4. If you have a development server running, stop it before executing the
    installation command once again.
  5. Use the --force option as in npm install --force.
  6. Remove your node_modules folder with rm -rf node_modules and install them
    once again with npm install.

Conclusion

In this article, we covered 15 of the most common Node.js errors you are likely
to encounter when developing applications or utilizing Node.js-based tools, and
we discussed possible solutions to each one. This by no means an exhaustive list
so ensure to check out the
Node.js errors documentation or the
errno(3) man page for a
more comprehensive listing.

Thanks for reading, and happy coding!

Check Uptime, Ping, Ports, SSL and more.

Get Slack, SMS and phone incident alerts.

Easy on-call duty scheduling.

Create free status page on your domain.

Got an article suggestion?
Let us know

Share on Twitter

Share on Facebook

Share via e-mail

Next article

How to Configure Nginx as a Reverse Proxy for Node.js Applications

Licensed under CC-BY-NC-SA

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Learn how to solve the error during the installation of a cordova plugin EISDIR: illegal operation on a directory «Probably this is either a connection problem, or plugin spec is incorrect.»

In the last days, a lot of Cordova developers that updated the Cordova platform in Node.js to the version 7.0.1, are facing a curious exception when installing plugins that are not so recent and haven’t been update for a couple of months:

Error: Failed to fetch plugin https://url-of-plugin-repository.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963228 Error output:
npm ERR! addLocal Could not install C:UsersusernameAppDataLocalTempnpm-9904-d274866cgit-cache-756b062e1e132d0a7a8dfd323b59c6b6edf6c4e142d3ee98
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "https://url-of-plugin-repository.git" "--save"
npm ERR! node v7.7.1
npm ERR! npm  v4.1.2
npm ERR! code EISDIR
npm ERR! errno -4068
npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.

npm ERR! Please include the following file with any support request:
npm ERR!     c:xampphtdocscordovahellonode_modulesnpm-debug.log

As the problem indicates, clearly, the issue is related to the package.json file, that has never existed in old plugins and therefore is causing this problem now. Besides this problem happens often with plugins that are installed via its git repository URL e.g https://github.com/ourcodeworld/cordova-ourcodeworld-filebrowser.git. This is achieved through cordova-fetch, module used for fetching modules from npm and gitURLs. It fetches the modules via npm install. It can also npm uninstall modules from a project.

Solution

With this error, you can find yourself in 2 different points of view:

  • You’re the owner of the plugin.
  • You’re trying to install a third party plugin.

A. You are the owner of the plugin

If you’re the owner of the plugin and someone is reporting that he ain’t able to install your plugin using the cordova add plugin URL command, you will need to create a new package.json file in the root folder of your plugin. If you’re not familiar with NPM, you should read more about the package file in the official documentation here.

To create a new package file for your plugin, you will obviously use Node.js in the command line and execute the following command (once located with the terminal in the folder of your plugin):

npm init

This command will start an interactive prompt (that you can simply skip by pressing Enter on every question) that will allow you to create your package.json file. Obviously, although isn’t necessary, you should provide correctly all the information. The package.json file located in the root folder of the plugin will look as follows: 

{
    "name": "cordova-ourcodeworld-filebrowser",
    "version": "1.0.0",
    "description": "Some description of what your plugin does",
    "main": "index.js",
    "scripts": {
        "test": "echo "Error: no test specified" && exit 1"
    },
    "repository": {
        "type": "git",
        "url": "git+https://github.com/username/plugin-repository.git"
    },
    "keywords": [],
    "author": "Author Name",
    "license": "MIT",
    "bugs": {
        "url": "https://github.com/username/plugin-repository/issues"
    },
    "homepage": "https://github.com/username/plugin-repository#readme"
}

The information should obviously be changed according to the correct info of your/the plugin.

B. If it’s a third party plugin

If you’re not the owner of the plugin and you’re only trying to install an awesome plugin that you did just find on Github, then you need to encourage that the owner of the plugin creates this file as soon as possible to prevent this error from appearing on future installations. If the plugin seems to be not maintained anymore, then you can download the plugin with git, create this file by yourself and finally install the plugin from the local source.

1. Download repository source code

If the plugin is hosted on Github, you can clone it into a local folder on your computer using git e.g (in this example will be cloned into C:/Users/Me/Desktop):

git clone https://github.com/ourcodeworld/cordova-ourcodeworld-filebrowser.git

In the clone directory it should be now (once finished) a new folder with the name of the clone repository.

2. Create the package.json file

Follow the steps of the option A (you’re the owner of the plugin) to create the package.json file.

3. Install it from the local source

As final step, you can install the plugin from the cloned repository but instead of providing the git URL, provide the local path to the plugin:

REM Navigate to the folder of your cordova project with the terminal
cd FolderOfYourCordovaProject
REM install the plugin from the local source
cordova plugin add C:/Users/Me/Desktop/cordova-ourcodeworld-filebrowser

Happy coding !

  • Remove From My Forums
  • Question

  • Uploading files through Azure Storage Explorer has been successful for more than 1 year.

    However, at this time, after I formated my computer and re-installed Window7 ultimate 64 bit, Azure Storage Explorer shows an error message ‘uploading 10 blobs and 10 completed but 1 error, EISDIR: illegal operation on a directory’.

    (please refer to the attached screenshot of error)

    I log-in Windows as, of course, Administrator and tried to guarantee full permission on the directory but no luck.

    This problem is being re-produced every time and has critically negative influence on my project.

    Can someone kindly share excellent insight to me ?

    Thank you so much always to the excellent people here MSDN !

    • Edited by

      Sunday, April 23, 2017 4:13 AM

Answers

  • I’ve got a technical support from Microsoft through remote connection yesterday.

    The temporary conclusion is,

    Only, if you see ‘uploading 10 and 10 completed (both same numbers only) and x (some) errors’, the Azure Storage itself is just finely working as it has been. When you try to test accessing some test files on Azure Storage through URL, if they can be accessed,
    the Azure Storage has no problem.

    And it seems the Storage ‘Explorer’ (recent version) has a simple problem (not the Storage itself) that the ‘Explorer’ just show this error message when there is blank space in folder name. We(I and Microsoft engineer tested it couple of times).

    I thought I just formatted my computer and re-installed Windows7 ultimate 64 bit but just realized that because I re-installed Windows7, I had to also re-install the recent version of Storage ‘Explorer’.

    Maybe, Microsoft is already working on preparing corrective update patch for Storage ‘Explorer’ and note that this case is reported officially by Microsoft engineer.

    Simply, again, the temporary conclusion is, ‘Storage’ is fine but, ‘Strorage Explorer’ has very tiny, ignorable problem.

    Have happy time with wonderful flowers in Spring !

    • Marked as answer by
      Kay_Lee
      Thursday, April 27, 2017 11:34 PM
    • Edited by
      Kay_Lee
      Friday, April 28, 2017 1:41 AM

Понравилась статья? Поделить с друзьями:
  • Error eexist file already exists mkdir
  • Error eeprom verify
  • Error eeprom disabled
  • Error eelftpserror control channel transfer error 114690
  • Error editing value regedit