购买阿里云OSS服务
参考这里。
创建AK/SK
参考这里。
npm换源
brew install node
npm config set registry https://registry.npm.taobao.org
npm config get registry
npm install picgo -g
根据OSS信息配置PicGo
vim ~/.picgo/config.json
{
"picBed": {
"uploader": "aliyun",
"aliyun":
"accessKeyId": "xxx",
"accessKeySecret": "xxx",
"bucket": "xxx",
"area": "xxx",
"path": "img/",
"customUrl": "xxx",
"options": ""
}
},
"picgoPlugins": {}
}
在"xxx"的地方填入OSS桶信息即可。
配置Typora
大功告成。
标签:npm,xxx,oss,Typora,图床,registry,config,OSS From: https://www.cnblogs.com/oyld/p/17103841.html