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
yarn install
yarn install v0.28.1
warning package.json: No license field
warning test: No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error An unexpected error occurred: "ENOTDIR: not a directory, scandir '/Users/bestander/Library/Caches/Yarn/v1/npm-wrappy-0.0.0-a3898aef-4262-4dd5-afa7-204e8e8cb0b2-1500935336291'".
info If you think this is a bug, please open a bug report with the information provided in"/Users/bestander/work/temp/weird/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Please mention your node.js, yarn and operating system version.
Yarn 0.28.1, MacOSX
The text was updated successfully, but these errors were encountered:
**Summary**
Fixes#4013. We were blindly priotizing local files (even if they
are not directories) if there's anything on the file system matching
a pattern for a package. This patch ensures that we only do this if
the pattern starts with `./`, `../`. `/`, `~/` (and their `\` versions
for Windows) and the matched local entity is a directory. The former
part is in line with [NPM specs](https://docs.npmjs.com/files/package.json#local-paths).
**Test plan**
Added a new unit test and modified an incorrect old one. Also manually
verified that the issue described in #4013 does not happen anymore.
**Summary**
Fixes#4013. We were blindly priotizing local files (even if they
are not directories) if there's anything on the file system matching
a pattern for a package. This patch ensures that we only do this if
the pattern is not a valid semver range and the matched local entity is a directory.
**Test plan**
Added a new unit test and modified an incorrect old one. Also manually
verified that the issue described in #4013 does not happen anymore.
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Weird install failure
package.json
Please mention your node.js, yarn and operating system version.
Yarn 0.28.1, MacOSX
The text was updated successfully, but these errors were encountered: