Comments (9)
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.
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.
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.
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.
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.
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.
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.
This issue is most likely related with issue #27.
from grex.
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)
- Array arguments not parsed properly HOT 4
- Boolean parameters are converted to strings HOT 2
- Cannot perform Elasticsearch queries HOT 1
- isFloat() returns true for some GUIDs HOT 1
- Limit on the size of script is around 8K HOT 5
- Flowrank using Grex HOT 6
- Except/Retain Pattern HOT 4
- how can I addVertex only if not exists and addEdge only if not exists using grex script in one query for execute HOT 4
- How can I do Bulk insert using grex with titan ( for huge amount of vertex and edges) HOT 1
- Support for removeVertex HOT 1
- Passing array argument results in java class cast exception
- *Question Really* How Do I Send Parameters Into server-side script HOT 5
- Add custom error types when handling errors
- Consider dynamically adding steps with Gremlin.getStepNames()
- Vertex returned server-side script can't be used in a transaction
- Titan 0.9 and Tinkerpop 3 HOT 3
- Replication HOT 1
- setProperty() example? HOT 1
- javax.script.ScriptException with Object argument HOT 2
- Erratic api behavior, am I missing something? HOT 1
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 grex.