// install package
[root@wode001 10.node.js]# npm install -g grunt-cli
/usr/local/bin/grunt -> /usr/local/lib/node_modules/grunt-cli/bin/grunt
grunt-cli@0.1.13 /usr/local/lib/node_modules/grunt-cli
├── resolve@0.3.1
├── nopt@1.0.10 (abbrev@1.0.7)
└── findup-sync@0.1.3 (lodash@2.4.2, glob@3.2.11)
[root@wode001 10.node.js]#
// restart iptables
[root@wode001 10.node.js]# service iptables restart
iptables:将链设置为政策 ACCEPT:filter [确定]
iptables:清除防火墙规则: [确定]
iptables:正在卸载模块: [确定]
iptables:应用防火墙规则: [确定]
[root@wode001 10.node.js]#
// install express
[root@wode001 10.node.js]# npm install -g express
express@4.13.3 /usr/local/lib/node_modules/express
├── merge-descriptors@1.0.0
├── cookie-signature@1.0.6
├── methods@1.1.1
├── escape-html@1.0.2
├── range-parser@1.0.2
├── array-flatten@1.1.1
├── cookie@0.1.3
├── content-type@1.0.1
├── utils-merge@1.0.0
├── parseurl@1.3.0
├── fresh@0.3.0
├── vary@1.0.1
├── path-to-regexp@0.1.7
├── etag@1.7.0
├── content-disposition@0.5.0
├── serve-static@1.10.0
├── depd@1.0.1
├── qs@4.0.0
├── proxy-addr@1.0.8 (forwarded@0.1.0, ipaddr.js@1.0.1)
├── finalhandler@0.4.0 (unpipe@1.0.0)
├── on-finished@2.3.0 (ee-first@1.1.1)
├── debug@2.2.0 (ms@0.7.1)
├── send@0.13.0 (destroy@1.0.3, statuses@1.2.1, ms@0.7.1, mime@1.3.4, http-errors@1.3.1)
├── accepts@1.2.12 (negotiator@0.5.3, mime-types@2.1.4)
└── type-is@1.6.6 (media-typer@0.3.0, mime-types@2.1.4)
[root@wode001 10.node.js]#
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。