You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
your system does not have picgo installed, please install it before use. #3118
Duplicate of #2996. But I prefer this issue since it uses English and contains a screenshot.
I just checked #2996 and it's slightly different from my environment, My Picgo is a command line application(The exact expression is picgo-core), while #2996 is a desktop application.
In addition, I tried picgo's desktop program on my computer, and it still failed.
I successfully uploaded the image using Picgo-core
install & setting
npm install picgo -g
picgo add gitee
picgo set uploader
Then i manually changed the values of uploader and current to gitee(Their default smms, and can not changed by picgo set uploader. I not known why🥲).This is my config.json.
There is a long time since the first discuss, but the problem still appear in the last version of MarkText. I hope the maintainers will resolve this bug:
MarkText can find the system picgo-core application.
the images in the clipboard will upload normally through picgo.
Thanks for the detailed report and screenshots, and thanks to everyone who shared workarounds in the thread. The root cause was the classic macOS issue where a GUI app launched from Finder/Launchpad doesn't inherit your shell PATH, so MarkText couldn't see the picgo/picgo-core CLI installed via npm or Homebrew — plus the uploader didn't handle pasted/screenshot images.
Both problems have since been fixed in the current code:
picgo detection now probes the common install locations on macOS (/usr/local/bin, /opt/homebrew/bin, ~/.npm-global/bin, ~/.npm/bin, /usr/local/lib/node_modules/.bin) in addition to PATH, and the app augments PATH at startup (env.ts).
The uploader resolves the picgo binary across those same paths and runs it with an augmented PATH, and clipboard/screenshot images are now written to a temp file and uploaded (not just local file paths).
Given this, I'm closing the issue as resolved. If you still hit "picgo not installed" or clipboard uploads failing on a recent build, please open a new issue with your MarkText version, how picgo was installed, and the output of which picgo — happy to dig in. Thanks again!
Activity
YalandHong commentedon Mar 11, 2022
Duplicate of #2996. But I prefer this issue since it uses English and contains a screenshot.
liwmj commentedon Mar 11, 2022
I just checked #2996 and it's slightly different from my environment, My Picgo is a command line application(The exact expression is picgo-core), while #2996 is a desktop application.
In addition, I tried picgo's desktop program on my computer, and it still failed.
shPisces commentedon Mar 16, 2022
my Marktext is 0.17.1,and Picgo is 2.3.0. It has a error:



your system does not have picgo installed, please install it before use.
JoJoJotarou commentedon Mar 16, 2022
I successfully uploaded the image using Picgo-core
install & setting
npm install picgo -g picgo add gitee picgo set uploaderThen i manually changed the values of
uploaderandcurrenttogitee(Their defaultsmms, and can not changed bypicgo set uploader. I not known why🥲).This is my config.json.OS: Windows11
nodejs: v16.14.0
marktext: 0.17.1
picgo-core: 1.5.0-alpha.0
daoshenzzg commentedon Mar 18, 2022
上面的问题我也遇到了。我用比较别扭的方式
Shell script location解决了....npm install picgo -g,可能会遇到一些错误,按照提示修复即可。API Token菜单,点击Generate Secret Token按钮,生成一个Secret Token。第四步:通过

picgo u xxx.png上传一个图片试试效果。第五步:准备一个脚本,比如我的
picgo_upload.sh,并给执行权限,如chmod 755 picgo_upload.sh
7. 第七步:效果测试 上传中...
上传成功:fxha commentedon Mar 31, 2022
We had/have a similar issues with pandoc on macOS. Is MarkText somehow isolated on the OS?
strive1216 commentedon Apr 4, 2022
@daoshenzzg 我也配置命令行脚本,但是不成功,手动单独执行可以,感觉marktext并没有调用配置的脚本,也没有其他异常信息
liwmj commentedon Apr 8, 2022
In my opinion, Mark Text runs on a native MAC OS.
Installation:
brew install marktextOperation::
Launchpad --> click 'MarkText'hjue commentedon Apr 12, 2022
我也是同样的情况。不知道在哪里可以看到marktext的日志
nanbobike commentedon May 5, 2022
need the function "choose the picgo install location"
daoshenzzg commentedon May 19, 2022
我试了下,我的这种方式,拷贝的本地图片没有问题,截图的不行。
daoshenzzg commentedon May 19, 2022
我试了下,我的这种方式,拷贝的本地图片没有问题,截图的不行。
4 remaining items
tianfeng98 commentedon Jun 10, 2022
我在Windows 10上实验,


npm i -g picgo安装picgo-core之后,就可以正常检测到picgo命令并执行。但MacOS上有一个奇怪的现象:
启动dev命令是可以检测到picgo并正常使用
使用build命令打包后,安装
.dmg包,发现picgo命令又失效了picgo的子进程命令似乎没有执行……
MacOS: Monterey 12.4
coderwing commentedon Jun 13, 2022
您好,我修改了代码,重新编译打包后,打开的app上传图片还是只能上传复制的本地路径的图片,截图的还是不行,我都已经修改成这样了:

tianfeng98 commentedon Jun 14, 2022
这样改了之后,没有传
filepath本地路径的图片应该不能上传了...有报错信息吗?或者启动
dev调试一下stutiredboy commentedon Jun 22, 2022
不能正常处理截图,只能是已经保存在本地的文件可以用自定义脚本的方式,这就有点尴尬
chinayangxiaowei commentedon Jul 17, 2022
Modify here and add the path "/usr/local/bin"
cyy53589 commentedon Jul 18, 2022
@chinayangxiaowei
It seems that my '/usr/local/bin' folder dose not contain PicGo. Are you using PicGo Core?
chinayangxiaowei commentedon Jul 22, 2022
Yes, I'm using the picgo command line version of "picgo core".
You can install it by typing "npm install -g picgo" in the terminal console
Thesoul20 commentedon Mar 26, 2023
There is a long time since the first discuss, but the problem still appear in the last version of MarkText. I hope the maintainers will resolve this bug:
Admingyu commentedon Mar 27, 2023
same problem here, not working event write a bash.
jt-z commentedon Apr 26, 2024
same problem here,no matter what , thanks for the all developers!
Admingyu commentedon Apr 26, 2024
for any one may run into this problem, i made a fix version at https://github.com/Admingyu/marktext/releases/tag/v0.0.1
changes:here
dodiadodia commentedon Oct 30, 2024
I rebuild marktext and release a fixed version on MacOS picgo-core installed by brew
Fixed:
Welcome to try.
Xnhyacinth commentedon Jan 6, 2025
I'm using macos and marktext version is 0.17.1. I still can't detect the picgo installed!
Jocs commentedon Jul 2, 2026
Thanks for the detailed report and screenshots, and thanks to everyone who shared workarounds in the thread. The root cause was the classic macOS issue where a GUI app launched from Finder/Launchpad doesn't inherit your shell PATH, so MarkText couldn't see the
picgo/picgo-coreCLI installed via npm or Homebrew — plus the uploader didn't handle pasted/screenshot images.Both problems have since been fixed in the current code:
/usr/local/bin,/opt/homebrew/bin,~/.npm-global/bin,~/.npm/bin,/usr/local/lib/node_modules/.bin) in addition to PATH, and the app augments PATH at startup (env.ts).Given this, I'm closing the issue as resolved. If you still hit "picgo not installed" or clipboard uploads failing on a recent build, please open a new issue with your MarkText version, how picgo was installed, and the output of
which picgo— happy to dig in. Thanks again!