Giter Club home page Giter Club logo

medium-cli's People

Contributors

lambtron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

medium-cli's Issues

Publishing error

Hi Andy @lambtron

First, thanks for creating this very useful app. Like you , I wish if I could publish Medium from CLI

I installed it thru npm and looks every thing is working fine except for the publishing .. here is a complete view of what I did .. Please advise if I am missing anything

`bash-4.3$ pwd
/home/ajain/buzzfeed
bash-4.3$ medium login

medium · Please open https://medium.com/me/settings in your browser.
· At the bottom of the page, under Integration Tokens, copy
· this description:

     · "Medium-CLI basic publishing access."

     · Then generate the new token and copy it.

Paste your Integration Token here:
#####################################################################

     · Authenticating into Medium..

     · Saved!

bash-4.3$ medium publish
(node:19796) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'split' of undefined
bash-4.3$ ls
articles
bash-4.3$ cd articles/
bash-4.3$ ls
test-post-from-medium-cli
bash-4.3$ cd test-post-from-medium-cli/
bash-4.3$ ls
index.md
bash-4.3$ cat index.md

title: test post from medium command line interface
tags:
canonicalUrl:
publishStatus: draft
license: all-rights-reserved

Testing a post from medium command line interface
bash-4.3$ `

A lot of errors

Hi!

Thanks for the script. Unfortunately, I couldn't get it working. Below is the code.

Do you have any ideas on how to make it work?

Thanks,
Joni

C:\Users\joni>npm install -g medium-cli
npm WARN deprecated [email protected]: This package was split into two simpler plugins: metalsmith-layouts and metalsmith-in-place
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: This package is discontinued. Use lodash.iteratee@^4.0.0.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\Users\joni\AppData\Roaming\npm\medium -> C:\Users\joni\AppData\Roaming\npm\node_modules\medium-cli\bin\medium
C:\Users\joni\AppData\Roaming\npm
-- [email protected] -- [email protected]
-- [email protected] -- [email protected] (git+ssh://[email protected]/ianstormtaylor/to-camel-case.git#02759f7dcf1b3a9c05568183dc14c738d2a0e229)

C:\Users\joni>medium login
events.js:160
throw er; // Unhandled 'error' event
^

Error: spawn C:\Users\joni\AppData\Roaming\npm\node_modules\medium-cli\bin\medium-login ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3

package.json is missing thunkify-wrap

sup, started using the cli today. First publish went like this:

jmordetsky@Josephs-MacBook-Pro ~/A/p/j03m-medium> medium publish
module.js:338
    throw err;
    ^

Error: Cannot find module 'thunkify-wrap'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/medium-cli/lib/publish/articles.js:7:16)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
jmordetsky@Josephs-MacBook-Pro ~/A/p/j03m-medium> npm install thunkify-wrap -g
[email protected] /usr/local/lib/node_modules/thunkify-wrap
└── [email protected]
jmordetsky@Josephs-MacBook-Pro ~/A/p/j03m-medium> medium publish
jmordetsky@Josephs-MacBook-Pro ~/A/p/j03m-medium> 

Looks like you need to add thunkify-wrap to package.json?

Tags

Make sure they work

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.