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

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]  
主站蜘蛛池模板: 托克托县| 湖北省| 阳原县| 南汇区| 巫山县| 教育| 灵石县| 介休市| 武汉市| 冕宁县| 内黄县| 辽阳县| 玉龙| 宽甸| 晋州市| 唐河县| 盐城市| 永吉县| 定日县| 封丘县| 和硕县| 大英县| 平谷区| 浮梁县| 平昌县| 鸡泽县| 蓝山县| 乌恰县| 民县| 弋阳县| 安溪县| 开江县| 新兴县| 民和| 古交市| 南开区| 林口县| 平南县| 万年县| 嘉祥县| 鄯善县|