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

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]  
主站蜘蛛池模板: 泾川县| 稷山县| 探索| 双城市| 萨嘎县| 木兰县| 河源市| 东乡| 婺源县| 平南县| 佛坪县| 孟连| 青龙| 连山| 曲水县| 肃南| 阿克陶县| 陈巴尔虎旗| 乐陵市| 偃师市| 镇康县| 崇左市| 茂名市| 嘉善县| 澳门| 枝江市| 台山市| 田林县| 海伦市| 宝清县| 曲水县| 松江区| 大荔县| 玛曲县| 安乡县| 泰安市| 若羌县| 盐亭县| 海盐县| 新津县| 辽阳县|