npm普通包与cli包的安装
一、普通包直接安装到全局目录
sudo npm install express -g
+ express@4.17.1
added 50 packages from 37 contributors in 2.464s
二、cli包会在安装后创建一个bin中的快捷方式。
sudo npm install express-generator -g
/Users/zzf073/nmp/bin/express -> /Users/zzf073/nmp/lib/node_modules/express-generator/bin/express-cli.js
+ express-generator@4.16.1
added 10 packages from 13 contributors in 1.526s