Closed joeledwardson closed 2 years ago
Your terminal may use zsh, fish, etc with their own configs and environments. And if you use nvs
, then there's no node
into your system ENV, nvs use xxx
may add it in current session.
So you should use ${nodePath} ${picgoPath} update
to update image
Hi @abnerlee,
I'm using nvm
, I updated the custom script to /home/joel/.nvm/versions/node/v16.13.1/bin/node /home/joel/.nvm/versions/node/v16.13.1/bin/picgo upload
as you suggested and it works fine - thanks.
If the command
option expects the first argument to be a node binary in the format you've described ${nodePath} ${picgoPath} update
(and if not will try to find one), should this be added to the docs? I can't see anything in the docs that explains this
I'm using nvm, I updated the custom script to
/home/danielhu/.nvm/versions/node/v18.10.0/bin/node /home/danielhu/.nvm/versions/node/v18.10.0/bin/picgo u
as you suggested above.
And I can upload the pic from my clipboard (just 'u' as argument), but it doesn't work well in typora.
Here is my screenshot:
I copied the command terminal like this:
I'm using nvm, I updated the custom script to
/home/danielhu/.nvm/versions/node/v18.10.0/bin/node /home/danielhu/.nvm/versions/node/v18.10.0/bin/picgo u
as you suggested above. And I can upload the pic from my clipboard (just 'u' as argument), but it doesn't work well in typora. Here is my screenshot: I copied the command terminal like this:
Already fixed it, it seems that the repository had the same file.
[x] Searched existing issues to avoid creating duplicates.
[x] Confirmed that it can be reproduced in built-in themes without customized css.
If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.
[x] Searched http://support.typora.io/
Describe the bug When using
picgo
as a custom command:"/home/joel/.nvm/versions/node/v17.2.0/bin/picgo" upload
I get aValidation Failed
error:/usr/bin/env: ‘node’: No such file or directory
. (see screenshots at bottom)I try copying this exact command into terminal and it works fine (I have tried with and without quotations on the
picgo
command)Docs Within the export section of the docs, there is a section that looks like the same bug but this is a different section to the relevant upload image section.
Screenshots / Screencasts Image Upload Setting
Screenshot of error
Desktop No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal
Typora Version v1.0.3