Skip to content

Instantly share code, notes, and snippets.

@austinbv
Created June 23, 2012 18:39
Show Gist options
  • Save austinbv/2979374 to your computer and use it in GitHub Desktop.
Save austinbv/2979374 to your computer and use it in GitHub Desktop.
{
"name": "calendar",
"version": "0.0.0",
"description": "Calendar App for Pivotal Boulder Conference Room Calendar",
"main": "index.js",
"scripts": {
"test": "mocha"
},
"author": "Austin Vance",
"license": "BSD",
"dependencies": {
"express": "*",
"hamljs": "*"
},
"engines": {
"node": ">=0.6.8"
}
}
[email protected] /Users/austinbv/Dropbox/Documents/Sites/calapp2
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
└── [email protected]
express = require('express');
var app = express.createServer();
app.register('.haml', require('hamljs'));
app.get('*', function(req, res){
res.render('hello');
});
app.listen(9999);
○ > npm start
> [email protected] start /Users/austinbv/Dropbox/Documents/Sites/calapp2
> node server.js
module.js:337
throw new Error("Cannot find module '" + request + "'");
^
Error: Cannot find module 'hamljs'
at Function._resolveFilename (module.js:337:11)
at Function._load (module.js:279:25)
at Module.require (module.js:359:17)
at require (module.js:375:17)
at Object.<anonymous> (/Users/austinbv/Dropbox/Documents/Sites/calapp2/server.js:4:23)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)
at Array.0 (module.js:484:10)
npm ERR! [email protected] start: `node server.js`
npm ERR! `sh "-c" "node server.js"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the calendar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls calendar
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 11.4.0
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /Users/austinbv/Dropbox/Documents/Sites/calapp2
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.32
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] start: `node server.js`
npm ERR! message `sh "-c" "node server.js"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/austinbv/Dropbox/Documents/Sites/calapp2/npm-debug.log
npm ERR! not ok code undefined
npm ERR! not ok code 1
> tree -L 2
.
├── node_modules
│   ├── express
│   └── hamljs
├── package.json
├── server.js
└── views
├── hello.haml
└── npm-debug.log
4 directories, 4 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment