node. JS Installation

Source: Internet
Author: User
安装前有个问题必须知道:Node.js是什么?简单的说 Node.js 就是运行在服务端的 JavaScript。Node.js 是一个基于Chrome JavaScript 运行时建立的一个平台。Node.js是一个事件驱动I/O服务端JavaScript环境,基于Google的V8引擎,大家都说V8引擎执行Javascript的速度非常快,性能非常好^_^Node.js官网:https://nodejs.org/ 我下载的是windows最新版,下载后直接安装就行了(注意其中有个选项可以直接配置环境变了,勾选后就不需要手动配置了,像node、npm这种命令可以直接在命令行中运行)。检测node.js是否安装成功:

这样就表示你安装成功了。老规矩先写个Hello World吧:1.新建文件HelloWorld.js;2.往HelloWorld.js中写入console.log(‘Hello World!‘);3.在HelloWorld.js目录中打开命令行(小技巧:shift键 + 鼠标右键 , 会出现“在此处打开命令窗口(W)”),键入node HelloWorld.js 回车,Hello World!成功输出^_^

node. JS Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.