I have redhat server on which i have installed apache, mysql, php, and nodejs/npm. I am not familiar with nodejs. Now i need to deploy this nodejs app. I have put this app in my nodejs folder i.e. /opt/node/src/. But I am getting following error while deploying the code.
]# node server.js
/opt/node/src/abbott/node_modules/caesar/format.js:5
unction ctor() { this.constructor = child; } ctor.prototype = parent.prototype
^
TypeError: Cannot read property 'prototype' of undefined
at __extends (/opt/node/src/abbott/node_modules/caesar/format.js:5:199)
at /opt/node/src/abbott/node_modules/caesar/format.js:10:5
at Object.<anonymous> (/opt/node/src/abbott/node_modules/caesar/format.js:26:5)
at Object.<anonymous> (/opt/node/src/abbott/node_modules/caesar/format.js:126:4)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
Any inputs would be great help. Thanks in advance.
Package.json is as below :
{
"name": "fakelove-abbott",
"description": "node.js server for fakelove abbott",
"version": "1.0.0",
"author": {
"name": "Matthew Conlen",
"email": "code@mathisonian.com"
},
"engines": {
"node": "0.10.x"
},
"scripts": {
"start": "nodemon server.js",
"test": "NODE_ENV=test mocha --timeout 20000"
},
"browserify": {
"transform": [
"jadeify"
]
},
"dependencies": {
"async": "^0.9.0",
"basic-auth-connect": "^1.0.0",
"batch": "^0.5.1",
"body-parser": "^1.4.3",
"caesar": "^1.1.12",
"compression": "^1.0.8",
"connect-flash": "^0.1.1",
"connect-mongo": "^0.4.1",
"connect-slashes": "^1.2.0",
"cookie-parser": "^1.3.2",
"cookie-session": "^1.0.2",
"csurf": "^1.3.0",
"d3": "^3.4.11",
"easyimage": "^1.0.1",
"expect.js": "^0.3.1",
"express": "^4.6.1",
"express-session": "^1.6.5",
"forever": "^0.11.1",
"fs-extra": "^0.12.0",
"inherits": "^2.0.1",
"jade": "^1.4.2",
"knox": "^0.9.0",
"lodash": "~2.4.1",
"marked": "~0.3.2",
"method-override": "^2.1.1",
"mocha": "^1.21.4",
"moment": "^2.8.1",
"morgan": "^1.2.0",
"multiparty": "^3.3.1",
"node-uuid": "^1.4.1",
"nodemailer": "^1.3.0",
"pg": "^3.4.4",
"postmark": "^0.2.5",
"q": "~1.0.1",
"randomstring": "^1.0.3",
"request": "~2.40.0",
"sequelize": "git://github.com/mathisonian/sequelize.git#1.7.10-validator-update",
"serve-static": "*",
"sqlite3": "^2.2.7",
"twilio": "^1.7.0",
"validator": "~3.17.0",
"view-helpers": "^0.1.5",
"winston": "^0.7.3"
},
"devDependencies": {
"browserify": "~4.1.8",
"colors": "~0.6.2",
"d3": "~3.4.9",
"express": "~4.0.0",
"google-spreadsheets": "~0.3.0",
"gulp": "~3.8.0",
"gulp-browserify": "~0.5.0",
"gulp-buster": "~0.2.2",
"gulp-csso": "~0.2.7",
"gulp-gzip": "0.0.6",
"gulp-if": "0.0.5",
"gulp-jade": "~0.5.0",
"gulp-livereload": "~1.3.1",
"gulp-rename": "~1.2.0",
"gulp-s3": "~0.3.0",
"gulp-sass": "~0.7.1",
"gulp-uglify": "~0.2.1",
"gulp-util": "~2.2.14",
"jade": "~1.3.1",
"jadeify": "^2.5.0",
"mocha": "*",
"moment": "~2.6.0",
"nodemon": "*",
"parsleyjs": "^2.0.5",
"path": "~0.4.9",
"q": "~1.0.1",
"request": "~2.36.0",
"retina.js": "^1.1.0",
"should": "*",
"superagent": "^0.18.2",
"supertest": "*",
"tiny-lr": "0.0.5",
"validator": "^3.17.2",
"video.js": "^4.8.1"
}
}