picgo-plugin-npm
v1.0.3
Published
Npm图床
Downloads
14
Maintainers
Readme
picgo-plugin-Npm
This repository is a PicGo plugin for uploading images to npm.
How to use
准备工作
- Npm账号
- 本地安装nodejs
- 安装插件后填写有关信息
| 名称 | 内容 | 说明 | | ------- | -------------------------------------------------- | ---------------------------------- | | name | username-pic | 所发布的包名,不能与已存在的包重复 | | version | 1.0.0 | 版本号,在初次使用及重初始化时需要 | | cdnurl | https://www.unpkg.comhttps://npm.elemecdn.com/ | ~~国内各大厂的cdn~~ |
2.进入插件目录,执行npm login
当出现Logged in as username 时即登录成功
3.ok,enjoy it!
故障排查
- 上传完成后无法访问
- 可以打开日志查看是否报错,如果没有还请稍等片刻~~让npm和cdn反应过来~~
- 可以将图片名称删除,查看是否有图片文件
2.由于通过在后台调用npm上传,故在后台进程处理完成
通知窗口显示前再次上传会出现错误