question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option --use-pnp doesn't end up with Yarn Plug’n’Play mode

See original GitHub issue

Is 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

  1. Install yarn 1.10.1
  2. Run npx create-react-app testapp --use-pnp
  3. Install yarn 1.12.0-20181002.1534 (nightly)
  4. 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
saberonecommented, Oct 4, 2018

Yes it works correctly with yarn v1.13.0-20181002.2034. Sweeet! The speed of this thing is crazy 😉

2reactions
arcaniscommented, Oct 3, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found