赞
踩
不说太多了,需要注意的有以下几点:
中间若有网络问题,可以多试几次。
$ sudo curl -fL "https://wiseo-generic.pkg.coding.net/wiseo/tools/node?version=v14.18.1" -o node && mv node /usr/local/bin/
$ node -v
# v17.6.0
$ which node
# /opt/homebrew/bin/node
$ brew install npm
$ npm install picgo -g
$ which picgo
# /opt/homebrew/bin/picgo
# Picgo 插件
$ picgo install picgo-plugin-super-prefix
$ picgo install gitee-uploader
$ vi ~/.picgo/config.json { "picBed": { "uploader": "gitee", "gitee": { "repo": "nanalv/pictures", "token": "自己生成的", "path": "", "customUrl": "", "branch": "" } }, "picgoPlugins": { "picgo-plugin-gitee-uploader": true, "picgo-plugin-super-prefix": true }, "picgo-plugin-super-prefix": { "fileFormat": "YYYYMMDDHHmmss" }
/opt/homebrew/bin/node /opt/homebrew/bin/picgo upload
参考:
Typora+PicGo-Core实现图片自动上传gitee图床
PicGo+typora上传图片出现404 - {“message“:“Not Found Project“}
解决:picgo+gitee中出现StatusCodeError: 404 - {“message“:“Branch“}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。