![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
node
珍ྂ惜ྂ
这个作者很懒,什么都没留下…
展开
-
node 使用 nodemon 热更新
//安装nodemon npm install nodemon --save * 修改项目目录下package.json -> script ->"start": "nodemon bin/www" 运行 nodemon node bin/www原创 2020-10-20 11:15:18 · 168 阅读 · 0 评论 -
koa2 项目快速生成
全局安装 npm install -g koa-generator 构建项目 koa2 你的项目名称 安装依赖 cd 项目名称 && npm i 运行项目 npm start localhost:3000打开 目录结构 +-- bin | +-- www // 项目启动必备文件,配置端口等服务信息 +-- node_modules // 项目依赖,安装的所有模块都会在这个文件夹下 +-- public ..转载 2020-10-20 11:15:07 · 300 阅读 · 0 评论 -
node使用淘宝镜像 cnpm
cnpm 安装 npm install cnpm -g --registry=https://registry.npm.taobao.org npm卸载插件 npm uninstall <name> [ -g ] [ --save-dev ]原创 2020-10-19 14:29:46 · 123 阅读 · 0 评论 -
安装了node,在其他盘打开显示不识别?
引入 npm install -g express-generator 即可 使用npm安装不了全局插件了?可以清除npm全局包缓存试试 npm cache clear --force -g npm使用镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org原创 2020-10-19 14:27:22 · 1022 阅读 · 0 评论