APIDevTools / swagger-cli

Swagger 2.0 and OpenAPI 3.0 command-line tool
https://apitools.dev/swagger-cli
MIT License
517 stars 68 forks source link

Does swagger-cli work as wrapper? #40

Closed ytm100g closed 4 years ago

ytm100g commented 4 years ago

I read changelog.

The "swagger-cli" NPM package is now just a wrapper around the scoped "@apidevtools/swagger-cli" package

But I cannot install swagger-cli by npm install swagger-cli. I got 404.

Is this right?

kedarkekan commented 4 years ago

It fails with following dependency? cc: @JamesMessinger

  npm ERR! code E404
  npm ERR! 404 Not Found - GET https://registry.npmjs.org/@jsdevtools%2fswagger-cli - Not found
  npm ERR! 404 
  npm ERR! 404  '@jsdevtools/swagger-cli@4.0.1' is not in the npm registry.
kedarkekan commented 4 years ago

usenpm install -g @apidevtools/swagger-cli and @apidevtools/swagger-cli in package.json

ytm100g commented 4 years ago

usenpm install -g @apidevtools/swagger-cli and @apidevtools/swagger-cli in package.json

It works.Thank you.

lorthirk commented 4 years ago

Obviously npm install -g @apidevtools/swagger-cli works, but the point is that the wrapper is wrapping around the wrong package. It should be fixed regardless of the use of the scoped package directly, otherwise it's just useless.

JamesMessinger commented 4 years ago

Sorry! This was due to a typo in the wrapper module. It's been fixed now and released as v4.0.2

kedarkekan commented 4 years ago

Thanks @JamesMessinger

ytm100g commented 4 years ago

That’s very kind of you.