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
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.
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
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
.
Most helpful comment
I'm getting a similar issue with
graceful-fs
across a couple projects where it doesn't get installed.