Skip to content

Water-blue7/node-learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-learn

常用命

启动

node index.js

热启动

nodemon index.js
# 如果报错
npx nodemon index.js

npm下载包

# -g 全局安装   <packagename>@版本号
npm i <packagename>

# 根据package安装包
npm i

npm卸载包

# -g 全局卸载
npm r <packagename>

命令别名

package.jsonscripts属性中添加一行

# "别名": "原来的命令"
"server": "node index.js"

使用方法如下,别名为start时可以省略run

npm run server
npm start

express脚手架

# 安装
npm i -g express-generator

# 使用
express -e [fileName]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published