Yarn isn't working [8pt]
See original GitHub issueBug report
- I’ve updated both my project and my packages to the latest Frontity versions: https://docs.frontity.org/guides/keep-frontity-updated
- I’ve searched for existing issues.
- I’ve checked the documentation: https://docs.frontity.org
- I’ve checked the community forum: https://community.frontity.org
Expected behavior
Users expect to be able to use yarn
instead of npm
.
Observed behavior
yarn
is not working because it doesn’t install local dependencies using symlinks
. It copies the folder instead.
Possible solution
We can use symlink-dir
at frontity dev
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Yarn global command not working - Stack Overflow
Doing a global install with npm has the expected result, and everything works. What am I missing with yarn? javascript · npm ·...
Read more >LogRocket Blog - For Frontend Developers and Web App ...
Rethinking error tracking and product analytics. The current approach to delivering great digital experiences isn't working. It's time for a new solution.
Read more >8-Point Round Ripple pattern by Rachel Lein - Ravelry
This pattern is very free spirited. You can use any worsted weight yarn you like and can mix and match colors to your...
Read more >crochet star doily
Crochet Star DoilyThe pattern is very simple and the size of this doily can be customized according to your choice.
Read more >Installation | Yarn
These instructions only cover Yarn versions prior to 2.0. ... It is recommended to install Yarn through the npm package manager, which comes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Impressive work @iamuchejude. Congratulations!! 😄
Oh, great discover @michalczaplinski.
We are not using aliases.
No, but they also have portals and the is the exact same implementation than npm has for files! So it looks like that the yarn team decided to break compatibility with npm on purpose and what npm does with
file:
they do withportal:
.That’s really a shame because fixing this would be as simple as changing the
package.json
. But we can’t use both, and therefore we can’t support both.Even though there are some options, like letting the user choose between npm or yarn on
npx frontity create
, they lead to problems in the future, when multiple people want to collaborate on the same project and they want to use different package managers.We may use a
preinstall
script in the project and somehow check if the install command was called with yarn (I don’t know if that is possible) and if it was, change thepackage.json
to portals and then on apostinstall
script change it back to files, but that would complicate things for people wanting to use their ownpreinstall
andpostinstall
scripts.Well, it’s a shame that yarn has this functionality but with a different name. I don’t see a way right now to take advantage of it, so my opinion is to fix the links ourselves with the approach @iamuchejude is doing right now.