Option --use-pnp doesn't end up with Yarn Plug’n’Play mode
See original GitHub issueIs this a bug report?
Yes
Environment
macOS Mojave (10.14)
The npx create-react-app --info
command doesn’t work for me.
Steps to Reproduce
- Install yarn 1.10.1
- Run npx create-react-app testapp --use-pnp
- Install yarn 1.12.0-20181002.1534 (nightly)
- Run npx create-react-app testapp --use-pnp
Expected Behavior
No node_modules folder anymore (duh 😉 )
Actual Behavior
node_modules folder was present with both stable yarn as nightly version.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Plug'n'Play | Yarn - Package Manager
An overview of Plug'n'Play, a powerful and innovative installation strategy for Node. ... For this reason, PnP loose mode won't be the default...
Read more >get rid of node_modules with Yarn Plug'n'Play - Medium
With Yarn PnP, you: say bye to node_modules, reduce installation time ... Just append the --use-pnp option to the create-react-app command ...
Read more >State of Yarn 2 (Berry) in 2021 - Hao's learning log
Yarn 2, aka Berry, was announced back in April 2019, it was a pretty big deal at the time. ... The solution is...
Read more >What is Yarn PNP and Should You Use It? - Atomic Spin
Yarn PNP (Plug'n'Play) can make installation faster and provide better strictness around transitive dependencies. Is it worth using?
Read more >create react app - NPM doesn't support PnP - Stack Overflow
pnp is a Yarn feature, you need the latest version of yarn installed on your system to use it (at least Yarn 1.12)....
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
Yes it works correctly with yarn v1.13.0-20181002.2034. Sweeet! The speed of this thing is crazy 😉
Hey @saberone! You need Yarn 1.12+ (currently in rc) to use
--use-pnp
. Installing it should be quite easy, we have instructions on the website 🙂@gaearon Do you think it would be worthwhile to detect Yarn’s version and print a notice if the current version doesn’t support PnP when
--use-pnp
is used?