Created
March 3, 2011 06:13
-
-
Save kevinolsen/852417 to your computer and use it in GitHub Desktop.
new environment debugging
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
kevins-macbook:basic kevinolsen$ node -v | |
v0.2.6 | |
kevins-macbook:basic kevinolsen$ which node | |
/Users/kevinolsen/.nvm/v0.2.6/bin/node | |
kevins-macbook:basic kevinolsen$ npm ls installed | |
npm info it worked if it ends with ok | |
npm info using npm@0.2.18 | |
npm info using node@v0.2.6 | |
connect@0.5.10 =creationix =tjholowaychuk active installed remote High performance middleware framework framework web middleware connect rack | |
express@1.0.8 =tjholowaychuk active installed latest remote Sinatra inspired web development framework framework sinatra web rest restful | |
jade@0.6.3 =tjholowaychuk active installed latest remote Jade template engine | |
npm@0.2.18 =isaacs active installed remote A package manager for node package manager modules install package.json | |
qs@0.0.6 =tjholowaychuk active installed latest remote querystring parser | |
sass@0.5.0 =tjholowaychuk active installed latest remote Syntactically Awesome Stylesheets (compiles to css) sass template css view | |
npm ok | |
hello.js: | |
console.log(require.paths); | |
var express = require('express'); | |
var app = express.createServer(); | |
kevins-macbook:basic kevinolsen$ node hello.js | |
[ '/Users/kevinolsen/.node_libraries' | |
, '/Users/kevinolsen/.nvm/v0.2.6/lib/node' | |
] | |
node.js:63 | |
throw e; | |
^ | |
Error: Cannot find module 'express' | |
at loadModule (node.js:275:15) | |
at require (node.js:411:14) | |
at Object.<anonymous> (/Users/kevinolsen/workspace/basic/hello.js:2:15) | |
at Module._compile (node.js:462:23) | |
at Module._loadScriptSync (node.js:469:10) | |
at Module.loadSync (node.js:338:12) | |
at Object.runMain (node.js:522:24) | |
at Array.<anonymous> (node.js:756:12) | |
at EventEmitter._tickCallback (node.js:55:22) | |
at node.js:773:9 | |
kevins-macbook:basic kevinolsen$ ls /Users/kevinolsen/.nvm/v0.2.6/lib/node | |
connect express jade npm qs sass wafadmin | |
connect@0.5.10 express@1.0.8 jade@0.6.3 npm@0.2.18 qs@0.0.6 sass@0.5.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment