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 [email protected] | |
npm info using [email protected] | |
[email protected] =creationix =tjholowaychuk active installed remote High performance middleware framework framework web middleware connect rack | |
[email protected] =tjholowaychuk active installed latest remote Sinatra inspired web development framework framework sinatra web rest restful | |
[email protected] =tjholowaychuk active installed latest remote Jade template engine | |
[email protected] =isaacs active installed remote A package manager for node package manager modules install package.json | |
[email protected] =tjholowaychuk active installed latest remote querystring parser | |
[email protected] =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 | |
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment