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

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]  
主站蜘蛛池模板: 中牟县| 淮北市| 贵溪市| 赤壁市| 广水市| 澳门| 寻乌县| 安义县| 伊金霍洛旗| 科技| 宣威市| 琼结县| 嵊州市| 太原市| 渝中区| 开化县| 英吉沙县| 旺苍县| 台中市| 南汇区| 南江县| 乡宁县| 宁国市| 安仁县| 广安市| 称多县| 赞皇县| 普格县| 伊川县| 平原县| 怀远县| 桦川县| 肇东市| 同江市| 南郑县| 华坪县| 云梦县| 闵行区| 石棉县| 准格尔旗| 海门市|