搭建express
express官网API http://expressjs.com/zh-cn/
1.在文件夹下新建一个packages.json文件
内容为:
{}
然后执行 yarn add express
然后可看到node_modules 文件下的依赖文件里面有express,packages.json文件如下:
{ "dependencies": { "express": "^4.16.3" }}