摘要: 一、清除缓存 npm cache clean --force 二、设置镜像源(可选) npm set registry http://npm.xxxx.com/ 三、install 安装 npm install --legacy-peer-deps --ignore-scripts --unsafe 阅读全文
posted @ 2026-08-19 09:38 BillyYang 阅读(2) 评论(0) 推荐(0)
摘要: 删除 images 的 repository为 none 的镜像 docker rmi $(docker images -f "dangling=true" -q) 阅读全文
posted @ 2025-11-05 11:40 BillyYang 阅读(20) 评论(0) 推荐(0)
摘要: UPDATE 目标表 别名1 SET 字段1 = 源表.字段A, 字段2 = 源表.字段B FROM (查询语句或其他表) 别名2 WHERE 别名1.关联字段 = 别名2.关联字段 [AND 其他过滤条件]; 阅读全文
posted @ 2025-08-27 10:22 BillyYang 阅读(23) 评论(1) 推荐(0)
摘要: pgsql 中,表 t1 有多个字段 a1 a2 a3,相同a1 的值只查询一条数据 一、方法1 —使用 ROW_NUMBER() 窗口函数 SELECT * FROM ( SELECT *, ROW_NUMBER() OVER (PARTITION BY a1 ORDER BY a2) AS rn 阅读全文
posted @ 2025-05-20 17:51 BillyYang 阅读(977) 评论(0) 推荐(0)
摘要: pgsql 去掉字段的换行符和首尾空格 一、方法1 分部处理 1. 去掉首尾空格 使用 TRIM() 函数: UPDATE 表名 SET 字段名 = TRIM(字段名); 2. 去掉换行符 使用 REPLACE() 替换换行符: UPDATE 表名 SET 字段名 = REPLACE(字段名, CH 阅读全文
posted @ 2025-05-08 17:05 BillyYang 阅读(816) 评论(0) 推荐(0)
摘要: yarn 安装依赖时出现以下内容: The engine "node" is incompatible with this module. Excepted version "20 || >=22". Got "18.18.0" 一、问题 二、解决办法 设置 yarn 忽略engine 校验,如下: 阅读全文
posted @ 2025-01-15 16:35 BillyYang 阅读(1145) 评论(0) 推荐(0)
摘要: postgre 更新json字段的某个key名称 一、更新 json 字段的某个 key 名称 update table_name set json_column = jsonb_set(json_column::jsonb, '{new_key}', json_column::jsonb -> ' 阅读全文
posted @ 2024-11-27 16:35 BillyYang 阅读(184) 评论(0) 推荐(0)
摘要: 安装nvm,可以对本地环境中的node版本进行随意切换 一、安装 nvm 下载并安装 nvm ,安装手册“【nvm文档手册 - nvm是一个nodejs版本管理工具 - nvm中文网 (uihtm.com)】 二、nvm使用 # 安装node nvm install xxx.xxx # 应用 nvm 阅读全文
posted @ 2024-11-20 21:13 BillyYang 阅读(1372) 评论(0) 推荐(0)
摘要: 一、根据属性名设置属性值 public static void setFieldValueByName(Object obj, String fieldName, Object value){ try { // 获取obj类的字节文件对象 Class c = obj.getClass(); // 获 阅读全文
posted @ 2024-09-26 17:46 BillyYang 阅读(666) 评论(0) 推荐(0)
摘要: idea启动 main 函数时,报 Command line is too long Shorten command xxx 一、解决办法 找到 .idea 下面的 workspace.xml 找到以下属性 PropertiesComponent,添加 dynamic.classpath 属性 <p 阅读全文
posted @ 2024-09-26 17:42 BillyYang 阅读(558) 评论(0) 推荐(0)