Giter Site home page Giter Site logo

Comments (9)

jbmusso avatar jbmusso commented on September 17, 2024

Woops, this is indeed annoying.

Are you running the app in Node.js or in the browser? Also, which version of gRex are you using?

from grex.

leabdalla avatar leabdalla commented on September 17, 2024

I'm running version 0.4.0 in NodeJS on Mavericks.

Outputting the client object, it shows:

{ options: { database: 'graph', host: '127.0.0.1', port: 8182 },
  typeMap: {},
  resultFormatter: {} }

from grex.

celrenheit avatar celrenheit commented on September 17, 2024

The example you're trying is an example meant for the latest gRex version i.e., 0.5.x.
I hugely recommend that you get the latest version.
Run:

npm install grex

To get the latest version.

Otherwise, try the old example:
https://github.com/gulthor/grex/blob/0.3.1/examples/createVertex.js

I just tried it with gRex 0.4.0 and there is a small bug in src/grex.js file installed inside your node_modules directory:
Change merge to _.merge like so.

Grex.prototype.begin = function (typeMap) {
        typeMap = typeMap ? _.merge(typeMap, this.typeMap) : this.typeMap;

        return new Transaction(this.options, typeMap);
    };

Note: You also have to install the batch kibble extension... (https://github.com/gulthor/grex/tree/nodeify#dependancies).

The easiest thing you can do to get you started is installing the latest version of gRex.

from grex.

leabdalla avatar leabdalla commented on September 17, 2024

Running

npm install grex

The version 0.4.0 is downloaded. Check: https://www.npmjs.org/package/grex

How can I manually install the version 0.5.0?

from grex.

jbmusso avatar jbmusso commented on September 17, 2024

This is weird. It could be npm related, I don't know. I'll investigate.

Could you please try the following?

npm install [email protected]

Or if you wish to automatically update package.json:

npm install [email protected] --save

Let met know how it goes.

from grex.

leabdalla avatar leabdalla commented on September 17, 2024

Now it worked and that errors has gone. Thanks!

npm install output:

 [~/Desktop/test]$ npm install [email protected] --save                                                                                                                                                                                                             [ruby-1.9.3-p448]
 npm WARN package.json [email protected] No description
 npm WARN package.json [email protected] No repository field.
 npm WARN package.json [email protected] No README data
 npm http GET https://registry.npmjs.org/grex
 npm http 304 https://registry.npmjs.org/grex
 npm http GET https://registry.npmjs.org/inherits
 npm http GET https://registry.npmjs.org/q
 npm http GET https://registry.npmjs.org/lodash
 npm http 304 https://registry.npmjs.org/inherits
 npm http 304 https://registry.npmjs.org/q
 npm http 304 https://registry.npmjs.org/lodash
 [email protected] node_modules/grex
 ├── [email protected]
 ├── [email protected]
 └── [email protected]
 [~/Desktop/test]$

from grex.

jbmusso avatar jbmusso commented on September 17, 2024

Good to hear :). Let me know if you have trouble using gRex. You can also find me on irc Freenode #tinkerpop or #mogwai as Gulthor. Feel free to drop by, I'll happily provide support.

from grex.

jbmusso avatar jbmusso commented on September 17, 2024

This issue is most likely related with issue #27.

from grex.

jbmusso avatar jbmusso commented on September 17, 2024

This was indeed related to #27. My local npm config was misconfigured, and that caused issues when publishing packages. It was fixed for v0.5.6 and the problem should not occur with next versions anymore.

from grex.

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.