create-react-app: Try Catch Yarn Function Conflicting with Yarn (Java Package)
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.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (9 by maintainers)
Commits related to this issue
- Use yarnpkg alias to run Yarn There’s a common tool included in Hadoop that also has a `yarn` command, which created issues for users who had Hadoop installed: * #1257 * #1363 Yarn also installs the... — committed to fson/create-react-app by fson 7 years ago
- Use yarnpkg alias to run Yarn (#1365) There’s a common tool included in Hadoop that also has a `yarn` command, which created issues for users who had Hadoop installed: * #1257 * #1363 Yarn also... — committed to facebook/create-react-app by fson 7 years ago
- Use yarnpkg alias to run Yarn (#1365) There’s a common tool included in Hadoop that also has a `yarn` command, which created issues for users who had Hadoop installed: * #1257 * #1363 Yarn also... — committed to facebook/create-react-app by fson 7 years ago
- Use yarnpkg alias to run Yarn (#1365) There’s a common tool included in Hadoop that also has a `yarn` command, which created issues for users who had Hadoop installed: * #1257 * #1363 Yarn also... — committed to alexdriaguine/create-react-app by fson 7 years ago
- Use yarnpkg alias to run Yarn (#1365) There’s a common tool included in Hadoop that also has a `yarn` command, which created issues for users who had Hadoop installed: * #1257 * #1363 Yarn also... — committed to bondz/create-react-app by fson 7 years ago
- Use yarnpkg alias to run Yarn (#1365) There’s a common tool included in Hadoop that also has a `yarn` command, which created issues for users who had Hadoop installed: * #1257 * #1363 Yarn also... — committed to CodingZeal/create-react-app by fson 7 years ago
- Merge upstream changes from create-react-app 0.9.x (#84) * Heroku Deployment: Adds a note on how to resolve "File/Module Not Found Errors" (#1260) * Adds note on how to resolve file or directory ... — committed to trunkclub/tcweb-build by iamlacroix 7 years ago
- Fix yarnpkg alias usage in the init script Despite what the comment said we were printing "Installing dependencies using yarnpkg..." yet installing them using `yarn`. Turn it the other way around an... — committed to expo/create-react-native-app by fson 7 years ago
- Fix yarnpkg alias usage in the init script (#329) Despite what the comment said we were printing "Installing dependencies using yarnpkg..." yet installing them using `yarn`. Turn it the other wa... — committed to expo/create-react-native-app by fson 7 years ago
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 theyarnpkg
alias instead ofyarn
. It seems that this would be more reliable, and also allow people who have Hadoop installed use Create React App with Yarn.Success! Thanks for being so responsive. Keep up the good work.
Great! Thanks for the confirmation. I’m glad the recent changes to Yarn detection fixed this issue.