美文网首页
express Installation

express Installation

作者: 晨曦Bai | 来源:发表于2020-04-21 10:36 被阅读0次

官网

http://expressjs.com/en/starter/installing.html

简介

Express is a Node.js web application framework, minimal and flexible, providing a robust set of features for web and mobile applications,
providing a thin layer of fundamental web application features.

安装

precondition :

Install Node.js

  1. create a directory for your application

mkdir appdirec
cd appdirec

  1. create a package.json file

npm init

This command promptes you for a number of things, such as the name and version of you application, simply hit return to accept the defaults for most of them, with the following exception:
entry point: (index.js)
enter app.js , or whatever you want the name of the main file to be. or accept the default index.js by hitting enter

  1. Name the main file name(entry point)

app.js

press enter button in the keyboard

  1. Install Express in the application directory and save it in the dependencies list.

npm install express --save

相关文章

网友评论

      本文标题:express Installation

      本文链接:https://www.haomeiwen.com/subject/ecbyihtx.html