Skip to content

Instantly share code, notes, and snippets.

@hidenowt
Created May 25, 2011 02:08
Show Gist options
  • Save hidenowt/990186 to your computer and use it in GitHub Desktop.
Save hidenowt/990186 to your computer and use it in GitHub Desktop.
listando o npm
[herminio] rbx-1.2.3 ~
$ nvm ls
v0.4.8
stable: v0.4.8
latest: v0.4.8
current: v0.4.8
# use 'nvm sync' to update from nodejs.org
[herminio] rbx-1.2.3 ~
$ node -v
v0.4.8
[herminio] rbx-1.2.3 ~
$ ls -lah .npm/
total 0
drwxr-xr-x 3 herminio staff 102B May 24 23:01 .
drwxr-xr-x+ 70 herminio staff 2.3K May 22 16:10 ..
drwxr-xr-x 3 herminio staff 102B May 24 23:01 npm
[herminio] rbx-1.2.3 ~
$ ls -lah .npm/npm/
total 0
drwxr-xr-x 3 herminio staff 102B May 24 23:01 .
drwxr-xr-x 3 herminio staff 102B May 24 23:01 ..
drwxr-xr-x 5 herminio staff 170B May 24 23:01 1.0.6
[herminio] rbx-1.2.3 ~
$ ls -lah .npm/npm/1.0.6/
total 1320
drwxr-xr-x 5 herminio staff 170B May 24 23:01 .
drwxr-xr-x 3 herminio staff 102B May 24 23:01 ..
drwxr-xr-x 21 herminio staff 714B May 24 23:01 package
-rw-r--r-- 1 herminio staff 6.1K May 24 23:01 package.json
-rw-r--r-- 1 herminio staff 648K May 24 23:01 package.tgz
[herminio] rbx-1.2.3 ~
$ ls -lah .npm/npm/1.0.6/package
total 104
drwxr-xr-x 21 herminio staff 714B May 24 23:01 .
drwxr-xr-x 5 herminio staff 170B May 24 23:01 ..
-rw-r--r-- 1 herminio staff 242B May 24 23:01 .gitignore
-rw-r--r-- 1 herminio staff 314B May 24 23:01 .gitmodules
-rw-r--r-- 1 herminio staff 1.9K May 24 23:01 AUTHORS
lrwxr-xr-x 1 herminio staff 16B May 24 23:01 CHANGES -> doc/changelog.md
-rw-r--r-- 1 herminio staff 1.4K May 24 23:01 LICENSE
-rw-r--r-- 1 herminio staff 1.3K May 24 23:01 Makefile
-rw-r--r-- 1 herminio staff 5.3K May 24 23:01 README.md
drwxr-xr-x 5 herminio staff 170B May 24 23:01 bin
-rwxr-xr-x 1 herminio staff 44B May 24 23:01 cli.js
-rwxr-xr-x 1 herminio staff 506B May 24 23:01 config
drwxr-xr-x 54 herminio staff 1.8K May 24 23:01 doc
drwxr-xr-x 11 herminio staff 374B May 24 23:01 html
drwxr-xr-x 43 herminio staff 1.4K May 24 23:01 lib
drwxr-xr-x 54 herminio staff 1.8K May 24 23:01 man1
drwxr-xr-x 5 herminio staff 170B May 24 23:01 node_modules
-rw-r--r-- 1 herminio staff 6.6K May 24 23:01 npm.js
-rw-r--r-- 1 herminio staff 1.2K May 24 23:01 package.json
drwxr-xr-x 5 herminio staff 170B May 24 23:01 scripts
drwxr-xr-x 7 herminio staff 238B May 24 23:01 test
[herminio] rbx-1.2.3 ~
$ .npm/npm/1.0.6/package/bin/npm.js
Usage: npm <command>
where <command> is one of:
adduser, author, bin, c, cache, completion, config,
deprecate, docs, edit, explore, faq, find, get, help, i,
info, init, install, la, link, list, ll, ln, ls, outdated,
owner, prefix, prune, publish, r, rb, rebuild, restart, rm,
root, run-script, s, se, search, set, start, stop, tag,
test, un, uninstall, unlink, unpublish, up, update, version,
view, whoami
Add -h to any command for quick help.
Specify configs in the ini-formatted file at /Users/herminio/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
Help usage: npm help <section>
where <section> is one of:
adduser, author, bin, build, cache, changelog,
coding-style, completion, config, deprecate, developers,
docs, edit, explore, faq, find, folders, get, global, help,
init, install, json, link, list, ln, ls, npm, outdated,
owner, prefix, prune, publish, rebuild, registry,
removing-npm, restart, rm, root, run-script, scripts,
search, set, start, stop, tag, test, uninstall, unpublish,
update, version, view, whoami
Even more help at: npm help help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment