错误垃圾百宝袋

PicGo上传失败

TypeError:Cannot destructure property position of undefined` or ‘null’

发现问题

1
2
3
4
5
6
7
8
9
10
11
12
13
TypeError: Cannot destructure property position of 'undefined' or 'null'.
at Object.exports.parseAndValidate (C:\Users\ma\AppData\Roaming\picgo\node_modules\picgo-plugin-watermark\lib\util.js:50:11)
at Object.handle (C:\Users\ma\AppData\Roaming\picgo\node_modules\picgo-plugin-watermark\lib\index.js:9:124)
at C:\software\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\Lifecycle.js:113:30
at Array.map ()
at Lifecycle.handlePlugins (C:\software\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\Lifecycle.js:110:35)
at Lifecycle.beforeTransform (C:\software\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\Lifecycle.js:45:20)
at Lifecycle.start (C:\software\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\Lifecycle.js:23:24)
at PicGo.upload (C:\software\PicGo\resources\app.asar\node_modules\picgo\dist\src\core\PicGo.js:205:53)
at Object.upload (C:\software\PicGo\resources\app.asar\background.js:36:29205)
at Pt (C:\software\PicGo\resources\app.asar\background.js:36:31652)
-------Error Stack End-------
2021-10-25 18:48:00 [PicGo WARN] [PicGo Server] upload failed, see picgo.log for more detail ↑

解决问题

经过分析,错误,发现是picgo-plugin-watermark这个模块的错误,就是添加水印的模块出错了,导致上传失败,只要把这个模块禁用一下就可以了。

Windows常见问题

CMD乱乱码、PowerShell乱码

如图所示:

01-终端乱码-20230324-728

解决方法

在终端输入这个就行

1
CHCP 65001

02-解决方法-20230324-940

Foxmail连不上Google邮箱问题

遇到问题

新建账号20230326-807 新建账号20230326-897

解决问题

去官网升级到最新版的就没事了

Docker 启动MongoDB没有反应

docker-compose部署完MongoDB后进入容器,启动容器时发现失败

1
2
root@6cc59749c70c:/# mongo mongodb://localhost:27017 -u lil8 -p a5
bash: mongo: command not found

解决方法

将mongo改为mongosh就可以了

1
mongosh mongodb://localhost:27017 -u lilbai -p a5

MySQL忘记数据库密码

mysql初始密码文件路径:/etc/mysql/debian.cnf