文章地址:http://my.oschina.net/zhangdapeng89/blog/52783
curl http://npmjs.org/install.sh<!----> | sudo sh
安装成功后执行npm命令,会得到一下的提示:
Usage: npm where is one of:adduser, apihelp, author, bin, bugs, c, cache, completion,config, deprecate, docs, edit, explore, faq, find, get,help, help-search, home, i, info, init, install, la, link,list, ll, ln, ls, outdated, owner, pack, prefix, prune,publish, r, rb, rebuild, remove, restart, rm, root,run-script, s, se, search, set, show, star, start, stop,submodule, tag, test, un, uninstall, unlink, unpublish,unstar, up, update, version, view, whoami