摘要: 本人在node中上传文件到Git仓库时报错; 原因是 node_modules 的文件问题 1,解决方法;git 忽略 node_modules 修改 gitignore 这个文件 //修改gitignore 文件后提交 D:\node.jsFile>git add .gitignore D:\no 阅读全文
posted @ 2021-05-31 10:27 阿向向 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1,安装驱动、模块 express npm install express 2,编写js代码 //导入express模块 const express = require('express'); //创建一个名为app的Express应用 const app = express(); //设置访问根路 阅读全文
posted @ 2021-05-31 09:22 阿向向 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1, 全局安装express-generator npm install express-generator -g 2,创建名称为myapp的Express应用 express --view=pug myapp D:\node.jsFile\ch08\express-generator>expres 阅读全文
posted @ 2021-05-31 08:53 阿向向 阅读(312) 评论(0) 推荐(0) 编辑