npm(node package manage),node包管理工具

官方文档:https://docs.npmjs.com/

目前npm不仅仅是做为node的包管理工具,也是前端的库管理工具,它为整个前端生态圈注入了活力
同时hexo,gitbook,这种明星级的工具也都依赖npm
不会的话抓紧学习一下吧,可以试着发布一个属于自己的npm模块

常用命令:npm help查看

1
2
3
4
5
6
7
8
9
10
11
Usage: npm <command>
where <command> is one of:
access, adduser, bin, bugs, c, cache, completion, config,
ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
help, help-search, i, init, install, install-test, it, link,
list, ln, login, logout, ls, outdated, owner, pack, ping,
prefix, prune, publish, rb, rebuild, repo, restart, root,
run, run-script, s, se, search, set, shrinkwrap, star,
stars, start, stop, t, team, test, tst, un, uninstall,
unpublish, unstar, up, update, v, version, view, whoami