不粘锅的博客

vscode 命令行使用git commit 无法输入中文

问题 今天在 VSCode 的命令行中使用 git commit 时,遇到无法输入中文的问题。 解决方案 经过排查是因为git编码造成的,我们在终端输入 git config --global i18n.commitencoding utf-8 ,重启VScode即可生效! 一定要确认 终端的字符编

管理员 发布于 2024-02-17

Build step 'Execute shell' marked build as failure

问题 使用jenkins打包时报以下错误 .../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js .../esbuild@0.17.19/node_modules/esbuild postinstall$ node

管理员 发布于 2023-12-05

在Nodejs中获得当前的操作系统类型

获取方式 在Nodejs中以编程方式获取操作系统有2种方法,一种方法是使用process.platform属性,另一种方法是使用Nodejs OS模块。 这里我们

管理员 管理员 发布于 2023-09-06

前端使用husky + lint-staged对eslint做前置校验

eslint前置校验安装 husky 和lint-satgedpnpm add huskylint-staged 是一个工具,可以在Git 暂存区的文件上运行指定的lint 工具,以便于仅在需要时执行lint 检查。 它通常与Husky 配合使用,以在提交代码前运行lint-staged。在pack

管理员 发布于 2023-08-19

使用program时报 illegal option -- r

报错信息sed: illegal option -- rusage: sed script [-Ealn] [-i extension] [file ...] sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...

管理员 发布于 2023-08-06

Centos CP文件夹提示略过目录的解决方法

问题 cp 文件夹 提示 略过目录 file1cp file1 file2解法加上一个-r复制cp -r file1 file2权限不够如果提示权限不够请使用sudo -i切换用户输入cp -r file1 file2

管理员 发布于 2023-07-19