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

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]  
主站蜘蛛池模板: 郑州市| 拉孜县| 志丹县| 泗洪县| 宿迁市| 连山| 黔西| 蓝田县| 张家界市| 文水县| 时尚| 渝北区| 武陟县| 察哈| 册亨县| 瑞昌市| 视频| 平远县| 武平县| 呼和浩特市| 无极县| 禹城市| 榆中县| 临夏县| 辰溪县| 军事| 闸北区| 凌云县| 合川市| 喀什市| 杨浦区| 武城县| 定陶县| 巴东县| 浦县| 民丰县| 台南市| 手机| 元阳县| 江孜县| 宣汉县|