安装express框架

//命令行输入
//第一步 安装express框架
npm express express-generator -g
nodejs框架 - express
//第二步 创建文件夹student 并且使用ejs模板引擎
npm -e student
此时本地已生成student文件夹
nodejs框架 - express
nodejs框架 - express
第三步 package.json已经声明了相关模块,执行安装即可
npm install

第四步 安装需要用到的数据库,比如mysql(在需要用到的项目中安装)
npm i mysql --save

第五步 使用ejs模块
npm i ejs

相关文章:

  • 2022-01-27
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-12-30
猜你喜欢
  • 2022-12-23
  • 2022-01-22
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-01-15
相关资源
相似解决方案