Comments (10)
so based on this: yarnpkg/yarn#673. i'd say we will probably end up using yarnpkg alias instead
from baker.
Could you please provide more information regarding the platform you are running this on + node and npm versions. Baker uses yarn under the hood if it thinks it's available on your machine, otherwise it falls back to npm.
Also, what did you get when you ran npm run setup
for the first time?
from baker.
$ versions
npm 3.10.8
node v6.9.1
OS Darwin *** 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
Output of the install (no different that I can see):
$ git clone https://github.com/thebakeryio/baker.git MyReactNativeApp
Cloning into 'MyReactNativeApp'...
remote: Counting objects: 1255, done.
remote: Compressing objects: 100% (91/91), done.
remote: Total 1255 (delta 38), reused 0 (delta 0), pack-reused 1161
Receiving objects: 100% (1255/1255), 752.41 KiB | 569.00 KiB/s, done.
Resolving deltas: 100% (587/587), done.
Checking connectivity... done.
collumj@por-collumj-m ~/research (development) 07:42:30
$ cd MyReactNativeApp && npm install && npm run setup
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
> [email protected] preinstall /Users/collumj/research/MyReactNativeApp
> ./.baker/check-npm-version.js
> [email protected] install /Users/collumj/research/MyReactNativeApp/node_modules/fsevents
> node-pre-gyp install --fallback-to-build
[fsevents] Success: "/Users/collumj/research/MyReactNativeApp/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node" is installed via remote
> [email protected] postinstall /Users/collumj/research/MyReactNativeApp/node_modules/spawn-sync
> node postinstall
[email protected] /Users/collumj/research/MyReactNativeApp
├─┬ [email protected]
│ ├─┬ [email protected]
[rest of the tree]
> [email protected] setup /Users/collumj/research/MyReactNativeApp
> baker run ./.baker/generate.js app
create server
create /Users/collumj/research/MyReactNativeApp/server/package.json
create /Users/collumj/research/MyReactNativeApp/server/Procfile
create /Users/collumj/research/MyReactNativeApp/server/public/images/logo.png
create /Users/collumj/research/MyReactNativeApp/server/src/graphql/index.js
create /Users/collumj/research/MyReactNativeApp/server/src/graphql/schema.js
create /Users/collumj/research/MyReactNativeApp/server/src/index.js
create /Users/collumj/research/MyReactNativeApp/server/src/parse-server/index.js
create /Users/collumj/research/MyReactNativeApp/server/tests/.eslintrc
create /Users/collumj/research/MyReactNativeApp/server/tests/example.test.js
create app/assets
create /Users/collumj/research/MyReactNativeApp/app/assets/config.json
create /Users/collumj/research/MyReactNativeApp/app/assets/icon.png
create app/package.json
Error: Could not find or load main class install
events.js:160
throw er; // Unhandled 'error' event
^
Error: Command failed: yarn install
Error: Could not find or load main class install
at checkExecSyncError (child_process.js:483:13)
at execSync (child_process.js:523:13)
at constructor.installAppDepsAndRunRNSetup (/Users/collumj/research/MyReactNativeApp/.baker/generators/app/index.js:57:7)
at Object.<anonymous> (/Users/collumj/research/MyReactNativeApp/node_modules/yeoman-generator/lib/base.js:439:23)
at /Users/collumj/research/MyReactNativeApp/node_modules/yeoman-generator/node_modules/run-async/index.js:26:25
at /Users/collumj/research/MyReactNativeApp/node_modules/yeoman-generator/node_modules/run-async/index.js:25:19
at /Users/collumj/research/MyReactNativeApp/node_modules/yeoman-generator/lib/base.js:440:9
at runCallback (timers.js:637:20)
at tryOnImmediate (timers.js:610:5)
at processImmediate [as _immediateCallback] (timers.js:582:5)
from baker.
do you have yarn installed on your system and if you do what version is it?
from baker.
Well at first I thought "no, I haven't installed yarn". But then:
$ which yarn
/usr/local/bin/yarn
What?
collumj@por-collumj-m ~/research (development) 10:31:57
$ yarn version
Hadoop 2.7.2
Oh. There's a Hadoop tool called Yarn. http://hortonworks.com/apache/yarn/. It appears that Yarn may have a bit of a conflict if someone is using Hadoop.
from baker.
oh wow
from baker.
Yeah it surprised me too.
from baker.
Easily fixed though:
$ brew uninstall hadoop
because fuck hadoop. 💯
from baker.
thanks for reporting this and helping with debugging
from baker.
Hey thank you for being responsive and nice about it.
from baker.
Related Issues (20)
- issue with es2015 preset in setup
- Settings reorg
- ToolbarAndroid HOT 3
- Add note on Monorepo design
- Add logo + splash screen generator
- Add Android CI guide
- Use built-in MapView in MapView boilerplate
- Autolaunch app server when running ios/android if it's not running
- Incorrect import in Navigation boilerplate
- Error during `npm run setup` HOT 1
- Add support for Codepush HOT 1
- Consider moving to Jest for testing
- Support yarn
- npm run generate closes prematurely. HOT 3
- Investigate using Apollo for the GraphQL data layer
- just a blank screen that says "App" and doesn't have a margin on ios HOT 3
- Add support for redux-persist-immutable
- Add support for TypeScript
- yarn run setup fails on node v12.18 +
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baker.