Monday 12 June 2017

including NodeJS library manually not working

I need to include a NodeJS library manually for our config, and I downloaded this library: https://github.com/squaremo/amqp.node/

and I tried to include the library with

var amqp = require("amqp.node-master");

I ended up getting exceptions for

Cannot find module './defs'

I look in connection.js and it has this at the beginning:

'use strict';

var defs = require('./defs');
var constants = defs.constants;
var frame = require('./frame');
var HEARTBEAT = frame.HEARTBEAT;
var Mux = require('./mux').Mux;

Looking at it, I don't see any defs folder or def.js in the library. Am I missing something? Thanks.



via Crystal

No comments:

Post a Comment