Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI looking for source in wrong location #4

Closed
jcstanaway opened this issue Dec 13, 2018 · 2 comments
Closed

CLI looking for source in wrong location #4

jcstanaway opened this issue Dec 13, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@jcstanaway
Copy link

jcstanaway commented Dec 13, 2018

Performed npm install -g openapi-to-postmanv2.
Entered directory where OpenAPI 3.0 source yaml file located.
Attempted openapi2postmanv2 -s testapi.yaml.

$ pwd
/c/users/ccs018
$ openapi2postmanv2 -s testapi.yaml
Input file:  C:\Users\ccs018\AppData\Roaming\npm\node_modules\openapi-to-postmanv2\bin\testapi.yaml
fs.js:646
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open 'C:\Users\ccs018\AppData\Roaming\npm\node_modules\openapi-to-postmanv2\bin\testapi.yaml'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.<anonymous> (C:\Users\ccs018\AppData\Roaming\npm\node_modules\openapi-to-postmanv2\bin\openapi2postmanv2.js:90:20)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)
@abhijitkane abhijitkane added the bug Something isn't working label Dec 17, 2018
abhijitkane pushed a commit that referenced this issue Dec 17, 2018
@abhijitkane
Copy link
Member

@ccs018 Closing. The latest release should have this fixed.

@jcstanaway
Copy link
Author

Confirmed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants