Yarn: Some dependency seems to get skipped and unable to find (chokidar)

Created on 11 Oct 2016  ยท  40Comments  ยท  Source: yarnpkg/yarn

Do you want to request a _feature_ or report a _bug_?
bug
What is the current behavior?
after install, I am seeing errors 'chokidar' is not installed. It seems to be included in babel-cli, watchpack, etc modules but it is not in node_modules. However, I can chokidar in yarn.lock. This makes me enable to do webpack --watch
If the current behavior is a bug, please provide the steps to reproduce.

{
  "name": "yarnjs-bug-missing-deps",
  "description": "",
  "version": "1.0.0",
  "author": "Jaeho Lee <[email protected]>",
  "licenses": "proprietary",
  "scripts": {
    "postinstall": ""
  },
  "devDependencies": {
    "babel-cli": "^6.16.0",
    "babel-core": "^6.4.5",
    "webpack": "^1.12.12"
  }
}

Use this package.json to yarn and see chokidar is missing in node_modules

What is the expected behavior?
chokidar shouldn't be missing; There could be another dependencies gone missing but currently chokidar is only thing I can find so far.
Please mention your node.js, yarn and operating system version.
Node v6.3.0, OSX 10.10.5

cat-bug

Most helpful comment

I'm getting a similar issue with graceful-fs across a couple projects where it doesn't get installed.

Error: Cannot find module 'graceful-fs'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/wavded/Projects/fwwa/node_modules/enhanced-resolve/lib/NodeJsInputFileSystem.js:5:10)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
error Command failed with exit code 1.

All 40 comments

Thanks for the report! Can you please post the output of yarn ls? I'm wondering if we're just putting it in the wrong location or are omitting it entirely.

@kittens Actually, I think I found a clue. When I install webpack solely, chokidar is in correct place. But when I include babel-cli as a dependency, it goes away. babel-cli declared chokidar as optionalDependencies and I think #628 could be a related issue.

Below is output of yarn ls when babel-cli is only dependency in package.json.

yarn ls v0.15.0
warning [email protected]: No license field
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ arrify@^1.0.0
โ”‚  โ””โ”€ micromatch@^2.1.5
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ delegates@^1.0.0
โ”‚  โ””โ”€ readable-stream@^2.0.0 || ^1.1.13
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ arr-flatten@^1.0.1
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ babel-core@^6.16.0
โ”‚  โ”œโ”€ babel-polyfill@^6.16.0
โ”‚  โ”œโ”€ babel-register@^6.16.0
โ”‚  โ”œโ”€ babel-runtime@^6.9.0
โ”‚  โ”œโ”€ bin-version-check@^2.1.0
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ chokidar@^1.0.0
โ”‚  โ”œโ”€ commander@^2.8.1
โ”‚  โ”œโ”€ convert-source-map@^1.1.0
โ”‚  โ”œโ”€ fs-readdir-recursive@^0.1.0
โ”‚  โ”œโ”€ glob@^5.0.5
โ”‚  โ”œโ”€ lodash@^4.2.0
โ”‚  โ”œโ”€ log-symbols@^1.0.2
โ”‚  โ”œโ”€ output-file-sync@^1.1.0
โ”‚  โ”œโ”€ path-exists@^1.0.0
โ”‚  โ”œโ”€ path-is-absolute@^1.0.0
โ”‚  โ”œโ”€ request@^2.65.0
โ”‚  โ”œโ”€ slash@^1.0.0
โ”‚  โ”œโ”€ source-map@^0.5.0
โ”‚  โ””โ”€ v8flags@^2.0.10
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ chalk@^1.1.0
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”‚  โ”œโ”€ 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
โ”‚  โ”œโ”€ esutils@^2.0.2
โ”‚  โ””โ”€ js-tokens@^2.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ babel-code-frame@^6.16.0
โ”‚  โ”œโ”€ babel-generator@^6.17.0
โ”‚  โ”œโ”€ babel-helpers@^6.16.0
โ”‚  โ”œโ”€ babel-messages@^6.8.0
โ”‚  โ”œโ”€ babel-register@^6.16.0
โ”‚  โ”œโ”€ babel-runtime@^6.9.1
โ”‚  โ”œโ”€ babel-template@^6.16.0
โ”‚  โ”œโ”€ babel-traverse@^6.16.0
โ”‚  โ”œโ”€ babel-types@^6.16.0
โ”‚  โ”œโ”€ babylon@^6.11.0
โ”‚  โ”œโ”€ convert-source-map@^1.1.0
โ”‚  โ”œโ”€ debug@^2.1.1
โ”‚  โ”œโ”€ json5@^0.4.0
โ”‚  โ”œโ”€ lodash@^4.2.0
โ”‚  โ”œโ”€ minimatch@^3.0.2
โ”‚  โ”œโ”€ path-exists@^1.0.0
โ”‚  โ”œโ”€ path-is-absolute@^1.0.0
โ”‚  โ”œโ”€ private@^0.1.6
โ”‚  โ”œโ”€ shebang-regex@^1.0.0
โ”‚  โ”œโ”€ slash@^1.0.0
โ”‚  โ””โ”€ source-map@^0.5.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ babel-messages@^6.8.0
โ”‚  โ”œโ”€ babel-runtime@^6.9.0
โ”‚  โ”œโ”€ babel-types@^6.16.0
โ”‚  โ”œโ”€ detect-indent@^3.0.1
โ”‚  โ”œโ”€ jsesc@^1.3.0
โ”‚  โ”œโ”€ lodash@^4.2.0
โ”‚  โ””โ”€ source-map@^0.5.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ babel-runtime@^6.0.0
โ”‚  โ””โ”€ babel-template@^6.16.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ babel-runtime@^6.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ babel-runtime@^6.9.1
โ”‚  โ”œโ”€ core-js@^2.4.0
โ”‚  โ””โ”€ regenerator-runtime@^0.9.5
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ babel-core@^6.16.0
โ”‚  โ”œโ”€ babel-runtime@^6.11.6
โ”‚  โ”œโ”€ core-js@^2.4.0
โ”‚  โ”œโ”€ home-or-tmp@^1.0.0
โ”‚  โ”œโ”€ lodash@^4.2.0
โ”‚  โ”œโ”€ mkdirp@^0.5.1
โ”‚  โ”œโ”€ path-exists@^1.0.0
โ”‚  โ””โ”€ source-map-support@^0.4.2
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ core-js@^2.4.0
โ”‚  โ””โ”€ regenerator-runtime@^0.9.5
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ babel-runtime@^6.9.0
โ”‚  โ”œโ”€ babel-traverse@^6.16.0
โ”‚  โ”œโ”€ babel-types@^6.16.0
โ”‚  โ”œโ”€ babylon@^6.11.0
โ”‚  โ””โ”€ lodash@^4.2.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ babel-code-frame@^6.16.0
โ”‚  โ”œโ”€ babel-messages@^6.8.0
โ”‚  โ”œโ”€ babel-runtime@^6.9.0
โ”‚  โ”œโ”€ babel-types@^6.16.0
โ”‚  โ”œโ”€ babylon@^6.11.0
โ”‚  โ”œโ”€ debug@^2.2.0
โ”‚  โ”œโ”€ globals@^8.3.0
โ”‚  โ”œโ”€ invariant@^2.2.0
โ”‚  โ””โ”€ lodash@^4.2.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ babel-runtime@^6.9.1
โ”‚  โ”œโ”€ esutils@^2.0.2
โ”‚  โ”œโ”€ lodash@^4.2.0
โ”‚  โ””โ”€ to-fast-properties@^1.0.1
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ bin-version@^1.0.0
โ”‚  โ”œโ”€ minimist@^1.1.0
โ”‚  โ”œโ”€ semver-truncate@^1.0.0
โ”‚  โ””โ”€ semver@^4.0.3
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ find-versions@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ readable-stream@~2.0.5
โ”‚  โ””โ”€ [email protected]
โ”‚  โ”‚  โ”œโ”€ 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
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ inherits@~2.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ balanced-match@^0.4.1
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ expand-range@^1.8.1
โ”‚  โ”œโ”€ preserve@^0.2.0
โ”‚  โ””โ”€ repeat-element@^1.1.2
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ camelcase@^2.0.0
โ”‚  โ””โ”€ map-obj@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ ansi-styles@^2.1.0
โ”‚  โ”œโ”€ escape-string-regexp@^1.0.2
โ”‚  โ”œโ”€ has-ansi@^2.0.0
โ”‚  โ”œโ”€ strip-ansi@^3.0.0
โ”‚  โ””โ”€ supports-color@^2.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ number-is-nan@^1.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ delayed-stream@~1.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ graceful-readlink@>= 1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ array-find-index@^1.0.1
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ assert-plus@^1.0.0
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ get-stdin@^4.0.1
โ”‚  โ”œโ”€ minimist@^1.1.0
โ”‚  โ””โ”€ repeating@^1.1.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ is-arrayish@^0.2.1
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ is-posix-bracket@^0.1.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ fill-range@^2.1.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ is-extglob@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ is-number@^2.1.0
โ”‚  โ”œโ”€ isobject@^2.0.0
โ”‚  โ”œโ”€ randomatic@^1.1.3
โ”‚  โ”œโ”€ repeat-element@^1.1.2
โ”‚  โ””โ”€ repeat-string@^1.5.2
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ path-exists@^2.0.0
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”‚  โ””โ”€ pinkie-promise@^2.0.0
โ”‚  โ””โ”€ pinkie-promise@^2.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ array-uniq@^1.0.0
โ”‚  โ”œโ”€ get-stdin@^4.0.1
โ”‚  โ”œโ”€ meow@^3.5.0
โ”‚  โ””โ”€ semver-regex@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ for-in@^0.1.5
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ asynckit@^0.4.0
โ”‚  โ”œโ”€ combined-stream@^1.0.5
โ”‚  โ””โ”€ mime-types@^2.1.11
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ fstream@^1.0.0
โ”‚  โ”œโ”€ inherits@2
โ”‚  โ””โ”€ minimatch@^3.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ graceful-fs@^4.1.2
โ”‚  โ”œโ”€ inherits@~2.0.0
โ”‚  โ”œโ”€ mkdirp@>=0.5 0
โ”‚  โ””โ”€ rimraf@2
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ aproba@^1.0.3
โ”‚  โ”œโ”€ console-control-strings@^1.0.0
โ”‚  โ”œโ”€ has-color@^0.1.7
โ”‚  โ”œโ”€ has-unicode@^2.0.0
โ”‚  โ”œโ”€ object-assign@^4.1.0
โ”‚  โ”œโ”€ signal-exit@^3.0.0
โ”‚  โ”œโ”€ string-width@^1.0.1
โ”‚  โ”œโ”€ strip-ansi@^3.0.1
โ”‚  โ””โ”€ wide-align@^1.1.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ is-property@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ assert-plus@^1.0.0
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ glob-parent@^2.0.0
โ”‚  โ””โ”€ is-glob@^2.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ is-glob@^2.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ inflight@^1.0.4
โ”‚  โ”œโ”€ inherits@2
โ”‚  โ”œโ”€ minimatch@2 || 3
โ”‚  โ”œโ”€ once@^1.3.0
โ”‚  โ””โ”€ path-is-absolute@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ chalk@^1.1.1
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”‚  โ”œโ”€ 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
โ”‚  โ”œโ”€ commander@^2.9.0
โ”‚  โ”œโ”€ is-my-json-valid@^2.12.4
โ”‚  โ””โ”€ pinkie-promise@^2.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ ansi-regex@^2.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ os-tmpdir@^1.0.1
โ”‚  โ””โ”€ user-home@^1.1.1
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ assert-plus@^0.2.0
โ”‚  โ”œโ”€ jsprim@^1.2.2
โ”‚  โ””โ”€ sshpk@^1.7.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ repeating@^2.0.0
โ”‚  โ””โ”€ [email protected]
โ”‚  โ”‚  โ””โ”€ is-finite@^1.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ once@^1.3.0
โ”‚  โ””โ”€ wrappy@1
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ loose-envify@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ binary-extensions@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ builtin-modules@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ is-primitive@^2.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ number-is-nan@^1.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ number-is-nan@^1.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ is-extglob@^1.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ generate-function@^2.0.0
โ”‚  โ”œโ”€ generate-object-property@^1.1.0
โ”‚  โ”œโ”€ jsonpointer@^4.0.0
โ”‚  โ””โ”€ xtend@^4.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ kind-of@^3.0.2
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ is-buffer@^1.0.2
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ graceful-fs@^4.1.2
โ”‚  โ”œโ”€ parse-json@^2.2.0
โ”‚  โ”œโ”€ pify@^2.0.0
โ”‚  โ”œโ”€ pinkie-promise@^2.0.0
โ”‚  โ””โ”€ strip-bom@^2.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ chalk@^1.0.0
โ”‚  โ””โ”€ [email protected]
โ”‚  โ”‚  โ”œโ”€ 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
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ js-tokens@^1.0.1
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ currently-unhandled@^0.4.1
โ”‚  โ””โ”€ signal-exit@^3.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ camelcase-keys@^2.0.0
โ”‚  โ”œโ”€ decamelize@^1.1.2
โ”‚  โ”œโ”€ loud-rejection@^1.0.0
โ”‚  โ”œโ”€ map-obj@^1.0.1
โ”‚  โ”œโ”€ minimist@^1.1.3
โ”‚  โ”œโ”€ normalize-package-data@^2.3.4
โ”‚  โ”œโ”€ object-assign@^4.0.1
โ”‚  โ”œโ”€ read-pkg-up@^1.0.1
โ”‚  โ”œโ”€ redent@^1.0.0
โ”‚  โ””โ”€ trim-newlines@^1.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ arr-diff@^2.0.0
โ”‚  โ”œโ”€ array-unique@^0.2.1
โ”‚  โ”œโ”€ braces@^1.8.2
โ”‚  โ”œโ”€ expand-brackets@^0.1.4
โ”‚  โ”œโ”€ extglob@^0.3.1
โ”‚  โ”œโ”€ filename-regex@^2.0.0
โ”‚  โ”œโ”€ is-extglob@^1.0.0
โ”‚  โ”œโ”€ is-glob@^2.0.1
โ”‚  โ”œโ”€ kind-of@^3.0.2
โ”‚  โ”œโ”€ normalize-path@^2.0.1
โ”‚  โ”œโ”€ object.omit@^2.0.0
โ”‚  โ”œโ”€ parse-glob@^3.0.4
โ”‚  โ””โ”€ regex-cache@^0.4.2
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ mime-db@~1.24.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ brace-expansion@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ mkdirp@~0.5.0
โ”‚  โ”œโ”€ nopt@~3.0.1
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ rc@~1.1.0
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ rimraf@~2.5.0
โ”‚  โ”œโ”€ semver@~5.3.0
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ tar-pack@~3.1.0
โ”‚  โ””โ”€ tar@~2.2.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ abbrev@1
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ hosted-git-info@^2.1.4
โ”‚  โ”œโ”€ is-builtin-module@^1.0.0
โ”‚  โ”œโ”€ semver@2 || 3 || 4 || 5
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ””โ”€ validate-npm-package-license@^3.0.1
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ are-we-there-yet@~1.1.2
โ”‚  โ”œโ”€ console-control-strings@~1.1.0
โ”‚  โ”œโ”€ gauge@~2.6.0
โ”‚  โ””โ”€ set-blocking@~2.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ for-own@^0.1.3
โ”‚  โ””โ”€ is-extendable@^0.1.1
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ wrappy@1
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ graceful-fs@^4.1.4
โ”‚  โ”œโ”€ mkdirp@^0.5.1
โ”‚  โ””โ”€ object-assign@^4.1.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ glob-base@^0.3.0
โ”‚  โ”œโ”€ is-dotfile@^1.0.0
โ”‚  โ”œโ”€ is-extglob@^1.0.0
โ”‚  โ””โ”€ is-glob@^2.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ error-ex@^1.2.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ graceful-fs@^4.1.2
โ”‚  โ”œโ”€ pify@^2.0.0
โ”‚  โ””โ”€ pinkie-promise@^2.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ pinkie@^2.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ is-number@^2.0.2
โ”‚  โ””โ”€ kind-of@^3.0.2
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ deep-extend@~0.4.0
โ”‚  โ”œโ”€ ini@~1.3.0
โ”‚  โ”œโ”€ minimist@^1.2.0
โ”‚  โ””โ”€ strip-json-comments@~1.0.4
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ find-up@^1.0.0
โ”‚  โ””โ”€ read-pkg@^1.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ load-json-file@^1.0.0
โ”‚  โ”œโ”€ normalize-package-data@^2.3.2
โ”‚  โ””โ”€ path-type@^1.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ buffer-shims@^1.0.0
โ”‚  โ”œโ”€ 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
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ graceful-fs@^4.1.2
โ”‚  โ”œโ”€ minimatch@^3.0.2
โ”‚  โ”œโ”€ readable-stream@^2.0.2
โ”‚  โ””โ”€ set-immediate-shim@^1.0.1
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ indent-string@^2.1.0
โ”‚  โ””โ”€ strip-indent@^1.0.1
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ is-equal-shallow@^0.1.3
โ”‚  โ””โ”€ is-primitive@^2.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ is-finite@^1.0.0
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ aws-sign2@~0.6.0
โ”‚  โ”œโ”€ aws4@^1.2.1
โ”‚  โ”œโ”€ bl@~1.1.2
โ”‚  โ”œโ”€ caseless@~0.11.0
โ”‚  โ”œโ”€ combined-stream@~1.0.5
โ”‚  โ”œโ”€ extend@~3.0.0
โ”‚  โ”œโ”€ forever-agent@~0.6.1
โ”‚  โ”œโ”€ form-data@~2.0.0
โ”‚  โ”œโ”€ har-validator@~2.0.6
โ”‚  โ”œโ”€ hawk@~3.1.3
โ”‚  โ”œโ”€ http-signature@~1.1.0
โ”‚  โ”œโ”€ is-typedarray@~1.0.0
โ”‚  โ”œโ”€ isstream@~0.1.2
โ”‚  โ”œโ”€ json-stringify-safe@~5.0.1
โ”‚  โ”œโ”€ mime-types@~2.1.7
โ”‚  โ”œโ”€ node-uuid@~1.4.7
โ”‚  โ”œโ”€ oauth-sign@~0.8.1
โ”‚  โ”œโ”€ qs@~6.2.0
โ”‚  โ”œโ”€ stringstream@~0.0.4
โ”‚  โ”œโ”€ tough-cookie@~2.3.0
โ”‚  โ””โ”€ tunnel-agent@~0.4.1
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ glob@^7.0.5
โ”‚  โ””โ”€ [email protected]
โ”‚  โ”‚  โ”œโ”€ fs.realpath@^1.0.0
โ”‚  โ”‚  โ”œโ”€ inflight@^1.0.4
โ”‚  โ”‚  โ”œโ”€ inherits@2
โ”‚  โ”‚  โ”œโ”€ minimatch@^3.0.2
โ”‚  โ”‚  โ”œโ”€ once@^1.3.0
โ”‚  โ”‚  โ””โ”€ path-is-absolute@^1.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ semver@^5.3.0
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ source-map@^0.5.3
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ spdx-license-ids@^1.0.2
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ asn1@~0.2.3
โ”‚  โ”œโ”€ assert-plus@^1.0.0
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ bcrypt-pbkdf@^1.0.0
โ”‚  โ”œโ”€ dashdash@^1.12.0
โ”‚  โ”œโ”€ ecc-jsbn@~0.1.1
โ”‚  โ”œโ”€ getpass@^0.1.1
โ”‚  โ”œโ”€ jodid25519@^1.0.0
โ”‚  โ”œโ”€ jsbn@~0.1.0
โ”‚  โ””โ”€ tweetnacl@~0.14.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ code-point-at@^1.0.0
โ”‚  โ”œโ”€ is-fullwidth-code-point@^1.0.0
โ”‚  โ””โ”€ strip-ansi@^3.0.0
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ ansi-regex@^2.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ is-utf8@^0.2.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ get-stdin@^4.0.1
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ debug@~2.2.0
โ”‚  โ”œโ”€ fstream-ignore@~1.0.5
โ”‚  โ”œโ”€ fstream@~1.0.10
โ”‚  โ”œโ”€ once@~1.3.3
โ”‚  โ”œโ”€ [email protected]
โ”‚  โ”‚  โ””โ”€ wrappy@1
โ”‚  โ”œโ”€ readable-stream@~2.1.4
โ”‚  โ”œโ”€ rimraf@~2.5.1
โ”‚  โ”œโ”€ tar@~2.2.1
โ”‚  โ””โ”€ uid-number@~0.0.6
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ block-stream@*
โ”‚  โ”œโ”€ fstream@^1.0.2
โ”‚  โ””โ”€ inherits@2
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ user-home@^1.1.1
โ”œโ”€ [email protected]
โ”‚  โ”œโ”€ spdx-correct@~1.0.0
โ”‚  โ””โ”€ spdx-expression-parse@~1.0.0
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ [email protected]
โ”œโ”€ [email protected]
โ”‚  โ””โ”€ string-width@^1.0.1
โ”œโ”€ [email protected]
โ””โ”€ [email protected]

And this is output of npm ls which shows a few deps are not matching:

[email protected] /Users/user/yarnjs-bug-missing-deps
โ”œโ”€โ”€ [email protected] extraneous
โ”œโ”€โ”€ [email protected] extraneous
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚   โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚     โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚     โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚   โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚   โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ UNMET OPTIONAL DEPENDENCY chokidar@^1.0.0
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ UNMET OPTIONAL DEPENDENCY bcrypt-pbkdf@^1.0.0
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ UNMET OPTIONAL DEPENDENCY ecc-jsbn@~0.1.1
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ UNMET OPTIONAL DEPENDENCY jodid25519@^1.0.0
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ UNMET OPTIONAL DEPENDENCY jsbn@~0.1.0
โ”‚ โ”‚ โ”‚   โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚   โ””โ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected] extraneous
โ”œโ”€โ”€ [email protected] extraneous
โ”œโ”€โ”€ [email protected] extraneous
โ””โ”€โ”€ [email protected] extraneous

can confirm the same issue on a project with more packages. chokidar gets installed as a dependency of babel-cli and in my case also as a dependency of nunjucks. But chokidar does not show up on yarn ls under watchpack (which webpack depends on).

I get the same behavior running both yarn and yarn --flatten

edit: Also forgot to add this is on

I'm getting a similar issue with graceful-fs across a couple projects where it doesn't get installed.

Error: Cannot find module 'graceful-fs'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/wavded/Projects/fwwa/node_modules/enhanced-resolve/lib/NodeJsInputFileSystem.js:5:10)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
error Command failed with exit code 1.

As a quik fix yarn add --dev chokidar && yarn add --optional fsevents solves webpack watch for me

cc @thelarkinn @bebraw @sokra @spacek33z to track this.

I ran into the same issue.
After switching from npm to yarn, webpack was using 50% CPU.
Figured that fsevent wasn't used correctly/found by webpack(chokidar) anymore (although the package.json has no been touched when switching to yarn), so I added it as a dev dependency to my app.

  • Curiously, yarn install --production would also try to install fsevent. Since the server is linux, this fails.
  • fsevent is both a devDependency of my app and a transitive dependency of webpack -> watchpack -> chokidar
  • Different from the OP, chokidar was present in my node_modules

I had same experience as OP, chokidar is missing from node_modules but present in the lock

+1 with chokidar package

I'm experiencing the same issue trying to work on https://github.com/hownowbrowncow/material-timepicker so if you want something to test against there is that. Running gulp will fail when watchify cannot find chokidar.

Let me know what else I can provide to help with the issue.

I also found some problems with fsevents library, having the solution above
yarn add --dev chokidar && yarn add --optional fsevents.

After clean install

rm -rf node_modules
yarn

I does not see fsevents folder under node_modules even fsevents exists inside package.json as optional dependency

  "optionalDependencies": {
    "fsevents": "^1.0.14"
  }

So node takes 100+% cpu as chokidar starts to use polling instead of fs events.

But if I run yarn add --optional fsevents after yarn command, I see the fsevents folder under the node_modules and all cpu problems gone.

Same problem but with graceful-fs. I can use the resolved URL in the yarn.lock file to successfully download and extract it into node_modules manually.

Not sure if it's related, but I'm getting same problems just when running yarn --production

I have same problem. When I try to install packages with production flag yarn install --prod it fails with error "Error: Cannot find module 'filename-regex'". When I run yarn install --prod again everything is ok. Error is raised only with "clean" install and production flag

Looks like @andreysdr's and my comment should go to https://github.com/yarnpkg/yarn/issues/761

I believe that #670 helps narrow down a root cause - optional dependencies with native modules.

+1 for chokidar package missing using webpack (watchpack).

Yet installing it manually does not solve the problem:/

It seems to be fixed for me. Node isn't at 100 % anymore.

@steida can you confirm that this was fixed by using a new release of yarn? seems like there was no pull request or official response.
using normal npm install is what I am doing now to avoid this issue.

As mentioned in the issue I believe this to be a duplicate of, the issue should be resolved via #809, which is committed in 558aa38d306abdd5b902f989c364247622b0f434 and available in v0.16.0.

@shepmaster thanks for the detailed response. I just updated to yarn 0.16.1 and the issue is indeed fixed. I think this issue can be safely closed.

Wasn't fixed for me as of 0.16, haven't been able to test with 0.16.1 yet.

This was fixed for me in 0.16 as well. Curious that its still not working for @outdooricon.

I'm using 0.16.1 and am seeing this issue. Experiencing a 2x jump in Webpack build times.

Now works for me with 0.16.1!

I'm seeing a similar issue on 0.16.1 and socket.io related dependencies (like json3)
Manually adding json3 yields yet another "Error: Cannot find module" missing dependency when running the app, so I didn't go all the way down the rabbit hole.
There definitely seems to be a problem with nested dependencies.

Back in 0.17.0 ๐Ÿ˜•

I opened https://github.com/yarnpkg/yarn/issues/1838, I guess it's the same issue?

Facing this issue in 0.17.8 with --production flag
qs is not getting installed which is a dependency of request which in turn is my project's dependency.

I updated to 0.17.9 and it didn't _seem_ fixed because my CPU still ran away.

Evidently I needed to clean the yarn cache as noted in this comment. When I did, all in CPU land was fixed.

brew update && brew upgrade yarn && rm -rf node_modules && yarn cache clean && yarn

@rosskevin's suggestion worked for me for the CPU issue. If you've installed yarn via npm instead of homebrew:
npm update -g yarn
rm -rf node_modules
yarn cache clean
yarn
PROFIT

I can confirm this was fixed for me in yarn 0.18 but was definitely an issue in yarn 0.17.

Yeah, I recently started out using Yarn and I had no problem like above - I also tried to reproduce bug in 0.19.1 but it seems it's ok now. closing this.

Is anyone still experiencing this issue? I think I might be but need to really check all the nitty gritty details before I report that I am.

I saw this issue again, seems like doing:

yarn add --dev chokidar && yarn add --optional fsevents

helped.

It seems like this issue is showing up again in Yarn 1.1.0 & workspaces.

Consistently seeing problems on my Linux CI server building Gatsby sites.

EDIT: I fixed things by adding NODE_ENV=development before the install script.

I have this problem again with yarn 1.1.0 and now with 1.2.0 as well. I have a dependency that depends on a lot of babel packages. They are all installed except fro babel-loader. If I run yarn 0.27.5 babel-loader is installed, if I run yarn 1.2.0 only babel-loader is missing.

yarn list babel-loader says its there and the lock file mentions it the same way it does babel-cli for example. Yet loader is inside my-framework/node_modules whereas all other my-framework deps are outside in the root.

0.27.5:
$ ll ./node_modules | grep babel-loader
drwxr-xr-x 8 user 272 Oct 11 18:05 babel-loader
$ ll ./node_modules/framework/node_modules | grep babel-loader
[nothing]

1.2.0
$ ll ./node_modules | grep babel-loader
[nothing]
$ ll ./node_modules/framework/node_modules | grep babel-loader
drwxr-xr-x 8 user 272 Oct 11 18:05 babel-loader

I narrowed down the babel-loader issue to this PR. https://github.com/yarnpkg/yarn/pull/4086 reverting the merge into master makes yarn behave like 0.27.5. I will investigate further what exactly is the bug. Somehow babel-loader is not being hoisted while other similar deps are.

You can reproduce this issue by adding react-scripts to a project, then run yarn to install. With 0.27.5 all react-scripts deps are hoisted including babel-loader, with yarn > 1.0 all are hoister except for babel-loader.

Pinpointed the offending code in line 332-344 in package-hoister.js, with the comment: we must not hoist a package higher than its peer dependencies

@arcanis @BYK What was the bug that https://github.com/yarnpkg/yarn/pull/4086 was trying to fix? how do I reproduce it?

I have a fix but I don't know if it regresses the original problem.

Nevermind found repro steps: https://github.com/yarnpkg/yarn/issues/3933. I can verify that with my fix the babel-loader issue is fixed and the repro steps on #3933 are still resolved as well. But it doesn't pass the unit test integration -> install should not hoist packages above their peer dependencies.

Was this page helpful?
0 / 5 - 0 ratings