Hi, Alex: Have you tried the following?
git clone https://github.com/marklogic/node-client-api.git cd node-client-api/ npm install That should install all of the dependencies listed in the package.json The --save argument will update the package.json, which shouldn't be necessary. In particular, I would expect the following command to make the cloned MarkLogic Node.js API dependent on itself. npm install -f marklogic --save Also, try installing the gulp and mocha command-line utilities globally, as in: npm install gulp -g npm install mocha -g Hoping that helps, Erik Hennum ________________________________ From: [email protected] [[email protected]] on behalf of Alex Muir [[email protected]] Sent: Tuesday, April 05, 2016 6:00 AM To: [email protected] Subject: [MarkLogic Dev General] /node-client-api cannot get it working Hi, I'm running linux mint 17 with node --version v4.4.2 with npm --version 3.8.5 I've done the following to get the marklogic client api working git clone https://github.com/marklogic/node-client-api.git cd node-client-api/ npm install -f marklogic --save npm install --save however when I execute node etc/test-setup.js admin user (default=admin): admin admin password (default=admin): ******** checking for REST users /mnt/mntlech/externalgit/node-client-api/node_modules/bluebird/js/main/async.js:43 fn = function () { throw arg; }; ^ Error: POST /manage/v2/roles: cannot process response with 400 status Any ideas what the problem may be going wrong there? I can however connect and load documents using the examples http://docs.marklogic.com/8.0/guide/node-dev/intro# node loaddocument.js Loaded the following documents: /gs/aardvark.json /gs/bluebird.json /gs/cobra.json so it suggests my credentials and ability to connect with node js at the very least is working. also if I run 'node gulp doc' in node-client-api/ i get errors as well node gulp doc module.js:327 throw err; ^ Error: Cannot find module '/mnt/mntlech/externalgit/node-client-api/gulp' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Function.Module.runMain (module.js:441:10) at startup (node.js:139:18) at node.js:968:3 Regards Alex www.jahtoe.com<http://www.jahtoe.com>
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
