第一节:nodejs

对于我们而言,nodejs可以被理解为:一个运行于windows之上的操作系统。它的操作是基于命令行的。

你可以搜索nodejs,也可以直接打开以下链接进行下载:

https://nodejs.org/zh-cn/

建议下载推荐版本。 /WebCourse2017/assets/image/chapter1/1.1.png

下载后进行安装,步骤略。

在安装一些陌生软件时,应该按默认值进行安装,一路next,一直到finish

安装完成后,我们使用 win+r 组合键打开 运行 对话框,然后在运行对话框中输入 cmd 后按回车,打开命令行窗口。

然后输入 npm 按回车,将类似的得到以下的提示,证明安装成功.

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

npm <cmd> -h     quick help on <cmd>
npm -l           display full usage info
npm help <term>  search for help on <term>
npm help npm     involved overview`