fmvilas / swagger-node-codegen

An OpenAPI 3.x/Swagger 2 code generator for Node.js
Apache License 2.0
200 stars 55 forks source link

No such a file or directory #10

Closed MCSH closed 6 years ago

MCSH commented 6 years ago

Running snc for the first time, I always got the following error: /usr/bin/env: ‘node --trace-deprecation’: No such file or directory

After banging my head on the wall for a couple of times, I realized the problem is the shebang on the main file. temporarily removing the flag fixed the issue for me, but that is not a real solution. What could be done?

Thanks in advance!

fmvilas commented 6 years ago

Hey, thanks for reporting. By flag you mean the --trace-deprecation flag? It's ok to remove it, I just forgot it there after debugging 😌

fmvilas commented 6 years ago

Version 1.0.1 is now fixing this problem. You can already update using npm. Thanks for reporting!

MCSH commented 6 years ago

Thank you for solving this so quick!