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.

Try Catch Yarn Function Conflicting with Yarn (Java Package)

See original GitHub issue

If you have Hadoop installed and run create-react-app, the try catch function calls the yarn java package and returns an error:

Error: Could not find or load main class add yarn add --dev --exact react-scripts failed

The npm fallback function never gets called.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
fsoncommented, Dec 18, 2016

Yarn is also available through the yarnpkg command (https://github.com/yarnpkg/yarn/commit/cefa9a368dd3df1a1f1ecd9e50de9c5fabefbc92). I wonder if we should simply make the installation use the yarnpkg alias instead of yarn. It seems that this would be more reliable, and also allow people who have Hadoop installed use Create React App with Yarn.

2reactions
kathyw268commented, Dec 13, 2016

Success! Thanks for being so responsive. Keep up the good work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java | Yarn - Package Manager
Try running `node findJavaHome.js` in the node-java directory to see the full failure message. ... Installation OSX. If you run into strange runtime...
Read more >
jackson/guava jar conflict when run spark on yarn
Few things I would suggest for you. First you should create a fat jar for your project. If you are using Maven just...
Read more >
Typescript: Working with Paths, Packages and Yarn Workspaces
Understanding packages is understanding modularity. We are all accustomed to working with packages as Javascript developers, installing and importing ...
Read more >
yarn.nodemanager.log-dirs - Apache Hadoop
Factory to create client IPC classes. yarn.ipc.client.factory.class Factory ... 10 Timeout in milliseconds when YARN dispatcher tries to drain the events.
Read more >
Control flow and error handling - JavaScript - MDN Web Docs
(In C or Java, the equivalent code would have output 1 .) ... If any statement within the try block (or in a...
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