Giter VIP home page Giter VIP logo

Comments (10)

callmephilip avatar callmephilip commented on June 3, 2024 1

so based on this: yarnpkg/yarn#673. i'd say we will probably end up using yarnpkg alias instead

from baker.

callmephilip avatar callmephilip commented on June 3, 2024

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.

jcollum avatar jcollum commented on June 3, 2024
$ 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.

callmephilip avatar callmephilip commented on June 3, 2024

do you have yarn installed on your system and if you do what version is it?

from baker.

jcollum avatar jcollum commented on June 3, 2024

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.

callmephilip avatar callmephilip commented on June 3, 2024

oh wow

from baker.

jcollum avatar jcollum commented on June 3, 2024

Yeah it surprised me too.

from baker.

jcollum avatar jcollum commented on June 3, 2024

Easily fixed though:

$ brew uninstall hadoop

because fuck hadoop. 💯

from baker.

callmephilip avatar callmephilip commented on June 3, 2024

thanks for reporting this and helping with debugging

from baker.

jcollum avatar jcollum commented on June 3, 2024

Hey thank you for being responsive and nice about it.

from baker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.