摘要: 昨天祸从天降,npm 突然没了,不过 node 还在。查了一下,node 安装目录下 确实少了npm,原因未知。 那就再安装一次 node 吧,顺便把版本升到 12.x 最新:node-v12.22.7-x64.msi 从官网用迅雷顺利下载后,发现安装不了,从昨天到今天,反复尝试多次,都是在安装过程 阅读全文
posted @ 2021-12-01 15:58 死宅程序员 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 我查阅了一些基础资料: windows下的八三命名规则(在cmd下的dir /h中的/X里提到了这个命名): ​http://support.microsoft.com/kb/142982/zh-cn 在Windows中禁用8.3格式的文件名 http://leonax.net/p/2775/dis 阅读全文
posted @ 2021-10-21 15:08 死宅程序员 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 问题 在调用微信小程序云开发下的支付接口创建订单时,出现了这样的错误响应 请求内容传入了非UTF8参数 经查,是我在参数attach中传递了用户昵称(用于给下游的支付完成回调传参),而其中携带了 emoji。 解决 将 昵称进行 encodeURIComponent( nickName ) 处理后传 阅读全文
posted @ 2021-10-14 23:37 死宅程序员 阅读(856) 评论(0) 推荐(0) 编辑
摘要: x,y: 位置 width, height: 单元格规格 color:分隔线颜色 ffmpeg -i test.png -vf "drawgrid=x=592:y=42:width=350:height=50:thickness=2:color=green" out4.png 效果 阅读全文
posted @ 2021-08-19 18:46 死宅程序员 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 问题 Vite + Vue + ts 项目下,引用 .vue 报错 vue vite ts Cannot find module or its corresponding type declarations.ts(2307) 方案 VS code 中,F1, "typescript: select 阅读全文
posted @ 2021-08-15 00:07 死宅程序员 阅读(6422) 评论(0) 推荐(0) 编辑
摘要: 修改 ts 编译配置为 es6 即可: "compilerOptions": { "target": "es6", 参考文档:https://stackoverflow.com/a/51860850/1185971 阅读全文
posted @ 2021-06-23 01:18 死宅程序员 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 错误 安装某 package 时,提示报错: npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/inherits: Cannot read property 'pickAlgorithm' 阅读全文
posted @ 2021-06-17 11:41 死宅程序员 阅读(21703) 评论(0) 推荐(1) 编辑
摘要: 背景 我想在本地 Windows 上体验下 Strapi (一个 headless CMS )。 本地原有的 MongoDB 版本是 v3.2.5 , 但 Strapi 对 MongoDB 版本的最低要求是 v3.6. 问题 启动 Strapi 工程,出现错误: Mongodb aggregate 阅读全文
posted @ 2021-06-02 01:38 死宅程序员 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 安装后设置环境变量,path 里添加 mongo 的 bin 目录 mongo.conf # 数据库文件保存路径 dbpath=D:\mongo-db # 日志保存路径 logpath=E:\Program Files\MongoDB\logs\mongodb.log # 打开日志的输出操作 log 阅读全文
posted @ 2021-05-14 22:05 死宅程序员 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 1、创建 access_token :https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token 2、创建 action 目录 .github/workflows/npm-pu 阅读全文
posted @ 2021-04-29 22:02 死宅程序员 阅读(110) 评论(0) 推荐(0) 编辑