官术网_书友最值得收藏!

Testing that Node.js is installed properly

Now that Node has been installed on your system, let's run a quick test to ensure everything is working properly.

Access a command line via your terminal program and execute the following command:

    $ node --version
    v8.4.3
    $ npm --version
    5.3.0

Assuming that your Node installation was successful, you should see the version number that was installed as an output on the screen, right under the command you executed.

Your version numbers will most likely be more recent than those printed earlier.

You can also launch the Node repl, a command-line shell that lets you execute JavaScript directly:

    $ node
    > console.log('Hello world!')
    Hello World!
    Undefined
    [press Ctrl-C twice to exit]  
主站蜘蛛池模板: 涿州市| 霍州市| 乐山市| 安福县| 西和县| 鄂尔多斯市| 绿春县| 深水埗区| 梅河口市| 罗山县| 宁国市| 兴山县| 钦州市| 平原县| 开原市| 韶山市| 保亭| 通州市| 宁强县| 阿城市| 余庆县| 洛宁县| 中西区| 山阳县| 清涧县| 顺义区| 怀柔区| 延边| 辛集市| 土默特右旗| 浠水县| 清远市| 洛阳市| 启东市| 高尔夫| 富宁县| 英山县| 新安县| 腾冲县| 邹城市| 侯马市|