Node常用总结

100 阅读1分钟

node app.js //执行js文件 不要使用 npm

nodemon app.js //保存后重新启动

npm init //初始化项目

npm i nodemon -g 安装全局包(多出一个命令)

npm i express@4.17.1

npm i 安装所有包

node包解构 package.json 中各属性,node_modules等

.gitignore git忽略哪些文件的管理

git基础命令:初始化 .暂存.提交.远程推送.克隆

promise+async+await

es6模块化 import export