Created
August 2, 2013 05:00
-
-
Save ajoslin/6137630 to your computer and use it in GitHub Desktop.
jitsu err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Cannot find module 'firebase' | |
at Function.Module._resolveFilename (module.js:338:15) | |
at Function.Module._load (module.js:280:25) | |
at Module.require (module.js:362:17) | |
at require (module.js:378:17) | |
at Object. (/opt/haibu/apps/appriculture/appriculture-server/package/lib/apprifire/index.js:2:16) | |
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) | |
error Fri, 02 Aug 2013 04:58:44 GMT module.js:340 | |
throw err; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "appriculture-server", | |
"version": "0.0.0-31", | |
"dependencies": { | |
"express": "~3.2.6" | |
}, | |
"subdomain": "appriculture-web", | |
"scripts": { | |
"start": "node server.js" | |
}, | |
"engines": { | |
"node": "0.8.x" | |
}, | |
"devDependencies": { | |
"firebase-token-generator": "~0.1.2", | |
"q": "~0.9.6", | |
"firebase": "~0.6.1", | |
"express": "~3.2.6", | |
"emailjs": "~0.3.4" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Firebase = require('firebase'); | |
var express = require('express'); | |
var app = express(); | |
app.use(express.bodyParser()); | |
app.use(express.errorHandler()); | |
app.use(express.static(__dirname + '/public/app')); | |
app.set('firebase_url', 'https://appriculture.firebaseio.com'); | |
app.set('firebase_secret', 'ZUMTaZWUoG5q27bsy5gNvcKFrw61eDrytJ6DbiSa'); | |
app.all('/api/*', function(req, res, next) { | |
res.header("Access-Control-Allow-Origin", "*"); | |
res.header("Access-Control-Allow-Headers", "X-Requested-With,Content-Type"); | |
next(); | |
}); | |
app.use('/api', require('./lib/auth')); | |
app.use('/api', require('./lib/farm')); | |
app.listen(process.env.PORT || 3000); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment