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

Node.js and npm

Node.js is JavaScript on steroids. Initially, a fork of the V8 JavaScript engine from the Google Chrome browser, Node.js was extended with more functionality, specifically to make JavaScript useful on the server-side. File handling, streams, system APIs, and a huge ecosystem of user-generated packages are just some of the facts that make this technology an outstanding partner for your web development.

The node package manager, NPM, is a door to over 200,000 packages and libraries that can help you build your own application or library. The Node.js philosophy is very similar to the UNIX philosophy, where packages should stay small and sharp, but they should use composition to achieve greater goals.

To build our application, we will rely on Node.js as the host for the tools that we're going to use. We should, therefore, make sure that we install Node.js on our machine so that we are prepared for the next chapter, where we will start to craft our task management application.

The code within this book was written using Node.js 8.9.0. Please make sure you're installing an equivalent Node.js version on your system. You can get Node.js from their website at https://nodejs.org, and it should be a breeze to install this on any kind of operating system by following the instructions on their website.

Once you've installed Node.js, we can perform a simple test to check whether everything is up and running. Open a Terminal console and execute the following command:

node -e "console.log('Hello World');"
主站蜘蛛池模板: 于田县| 宁城县| 澄迈县| 巴马| 盐山县| 康保县| 景宁| 施甸县| 鸡泽县| 峡江县| 探索| 忻城县| 景泰县| 那坡县| 庄河市| 富民县| 宜春市| 三亚市| 措美县| 寻甸| 黄浦区| 罗源县| 全椒县| 崇义县| 英德市| 永靖县| 日喀则市| 瑞金市| 龙井市| 承德市| 宣恩县| 中超| 来安县| 固阳县| 永善县| 平潭县| 永胜县| 东丰县| 沅江市| 万全县| 丰顺县|