You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Manually remove one of the dependencies rm -rf node_modules/lodash.get
Running yarn install again says "Already up-to-date." and does not install the missing package
Expected behavior
I would have expected yarn to install the missing lodash.get. We run yarn install on our CI server to run tests on pull requests before they are merged. If one branch causes a dependency to be removed, then another one requires it, yarn install will report success but the build will fail because required dependencies are not installed. I would expect yarn install to always deterministically ensure that every dependency is installed in node_modules
Please mention your node.js, yarn and operating system version.
node v6.9.1, yarn v0.19.1, macOS 10.12.2
Contents of yarn.lock
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
lodash.find@^4.6.0:
version "4.6.0"
resolved "http://npm.intranet.1stdibs.com:4783/lodash.find/-/lodash.find-4.6.0.tgz#cb0704d47ab71789ffa0de8b97dd926fb88b13b1"
lodash.get@^4.4.2:
version "4.4.2"
resolved "http://npm.intranet.1stdibs.com:4783/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
The text was updated successfully, but these errors were encountered:
Also, in the steps to reproduce before step 6 if you use yarn check you will get an error:
$ rm -rf node_modules/lodash.get
$ yarn check
yarn check v0.27.5
error "lodash.get" not installed
error Found 1 errors.
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.
Not sure if this is intended behavior, but it was confusing to me.
Steps to reproduce
--
yarn add lodash.find
--
yarn add lodash.get
rm -rf node_modules
yarn install
rm -rf node_modules/lodash.get
yarn install
again says "Already up-to-date." and does not install the missing packageExpected behavior
I would have expected yarn to install the missing
lodash.get
. We runyarn install
on our CI server to run tests on pull requests before they are merged. If one branch causes a dependency to be removed, then another one requires it, yarn install will report success but the build will fail because required dependencies are not installed. I would expectyarn install
to always deterministically ensure that every dependency is installed in node_modulesPlease mention your node.js, yarn and operating system version.
node v6.9.1, yarn v0.19.1, macOS 10.12.2
Contents of yarn.lock
The text was updated successfully, but these errors were encountered: