Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created October 5, 2009 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/201720 to your computer and use it in GitHub Desktop.
Save isaacs/201720 to your computer and use it in GitHub Desktop.
isaacs@sistertrain-lm:~
[16:46:52 6410] $ curl http://github.com/isaacs/npm/raw/master/bin/npm-install | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
168 168 168 168 0 0 794 0 --:--:-- --:--:-- --:--:-- 1435
/Users/isaacs/.npm-install
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6259 100 6259 0 0 8974 0 --:--:-- --:--:-- --:--:-- 8974
/Users/isaacs/.npm-install/isaacs-npm-0e7b3a9
npm: bootstrapping
npm: Refreshing data from http://github.com/isaacs/npm-data/raw/master/catalog.json
npm: writing catalog
npm: adding: npm
npm: adding: optparse
npm: install: optparse
npm: fetch: http://github.com/jfd/optparse-js/tarball/master
npm: fetch: http://waitdownload.github.com/jfd-optparse-js-421a7f9.tar.gz
npm: fetch: http://download.github.com/jfd-optparse-js-421a7f9.tar.gz
npm: unpacked: optparse
npm: optparse: linking /optparse.js to /optparse/src/optparse.js
npm: install: npm
npm: fetch: http://github.com/isaacs/npm/tarball/master
npm: fetch: http://waitdownload.github.com/isaacs-npm-0e7b3a9.tar.gz
npm: fetch: http://download.github.com/isaacs-npm-0e7b3a9.tar.gz
npm: unpacked: npm
npm: npm: linking /npm.js to /npm/npm.js
npm: success!
ok
isaacs@sistertrain-lm:~
[17:22:47 6416] $ rlwrap node-repl
Welcome to the Node.js REPL.
Enter ECMAScript at the prompt.
Tip 1: Use 'rlwrap node-repl' for a better interface
Tip 2: Type Control-D to exit.
Type '.help' for options.
node> var c = require("/node-couch.js")
Cannot find module '/node-couch.js'
isaacs@sistertrain-lm:~
[16:47:00 6411] $ rlwrap node-repl
Welcome to the Node.js REPL.
Enter ECMAScript at the prompt.
Tip 1: Use 'rlwrap node-repl' for a better interface
Tip 2: Type Control-D to exit.
Type '.help' for options.
node> var npm = require("/npm.js")
{}
node> npm.install("node-couch").wait()
npm: adding: node-couch
npm: install: node-couch
npm: fetch: http://github.com/sixtus/node-couch/tarball/master
npm: fetch: http://waitdownload.github.com/sixtus-node-couch-c94e831.tar.gz
npm: fetch: http://download.github.com/sixtus-node-couch-c94e831.tar.gz
npm: unpacked: node-couch
npm: node-couch: linking /node-couch.js to /node-couch/module/node-couch.js
npm: success!
node> var couch = require("/node-couch.js")
{"CouchDB":{"defaultPort":5984,"defaultHost":"127.0.0.1","debug":true}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment