node.js 下依赖Express 实现post 4种方式提交参数
(一) www-form-urlencoded
(二) form-data
(三) application/json
(四) text/xml
......
node.js 下依赖Express 实现post 4种方式提交参数
(一) www-form-urlencoded
(二) form-data
(三) application/json
(四) text/xml
......
//设置镜像源
npm config set registry https://registry.npmmirror.com
//查看当前使用的镜像地址
npm config get registry
// 查看 npm 全局安装过的包
npm list -g --depth 0
// 全局安装
npm install <package> -g
// 安装项目所有依赖
npm install
// 安装指定版本
npm install <package>@1.2.3
// 安装最新版本
npm i <package>@latest
// 删除全局的包
npm uninstall -g <package>
// 删除 node_modules 目录下面的包
npm uninstall <package>
// 更新指定包
npm update <package>
// 更新指定全局包
npm update -g <package>
// 更新本地安装的包
// 在 package.json 文件所在的目录中执行 npm update 命令
// 执行 npm outdated 命令。不应该有任何输出。
pnpm config set registry https://registry.npmmirror.com
# 检查
pnpm config get registry
#切换源:
pnpm config set registry <淘宝源或其他源地址>
#配置全局安装路径:
pnpm config set store-dir “全局地址”
例:pnpm config set store-dir D:\node\pnpm\global
#配置全局缓存路径 :
npm config set cache-dir “缓存地址”
例:pnpm config set cache-dir D:\node\pnpm\cache