https://github.com/strml/yarn-link-bug
Reproduction of a yarn --link-duplicates bug
https://github.com/strml/yarn-link-bug
bug yarn
Last synced: about 1 year ago
JSON representation
Reproduction of a yarn --link-duplicates bug
- Host: GitHub
- URL: https://github.com/strml/yarn-link-bug
- Owner: STRML
- Created: 2017-02-20T18:14:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-20T18:14:56.000Z (about 9 years ago)
- Last Synced: 2025-03-11T09:18:28.343Z (about 1 year ago)
- Topics: bug, yarn
- Size: 57.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yarn --link-duplicates bug
Reference: https://github.com/yarnpkg/yarn/pull/2620#issuecomment-281146567
This appears to be caused by the multiple webpack versions installed (`@kadira/storybook` installs webpack@1, project
uses webpack@2).
### Reproduction
```
$ yarn --link-duplicates 12:11:42
yarn install v0.21.2
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
error An unexpected error occurred: "EEXIST: file already exists, link '/home/git/forks/yarn-link-bug/node_modules/@kadira/storybook/node_modules/enhanced-resolve/node_modules/memory-fs/.npmignore' -> '/home/git/forks/yarn-link-bug/node_modules/babel-loader/node_modules/enhanced-resolve/node_modules/memory-fs/.npmignore'".
info If you think this is a bug, please open a bug report with the information provided in "/home/git/forks/yarn-link-bug/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
```