jnwltr / swagger-angular-generator

Generator of API layer in TypeScript for Angular 2+ apps
MIT License
91 stars 46 forks source link

Error no such directory using custom destination #47

Closed softdays closed 6 years ago

softdays commented 6 years ago

Error: ENOENT: no such file or directory, mkdir 'D:\dev\projects...\src\app\api\defs When I try to execute the command below: swagger-angular-generator -s src/swagger.json -d src/app/api --no-store

OS Windows 10 - Node 8.9.4 - Npm 5.6.0

jnwltr commented 6 years ago

Does src/app/api exist? If not, would it help if you created it?

On Thu, 26 Jul 2018, 07:22 Remi Patriarche, notifications@github.com wrote:

Error: ENOENT: no such file or directory, mkdir 'D:\dev\projects...\src\app\api\defs When I try to execute the command below: swagger-angular-generator -s src/swagger.json -d src/app/api --no-store

OS Windows 10 - Node 8.9.4 - Npm 5.6.0

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jnwltr/swagger-angular-generator/issues/47, or mute the thread https://github.com/notifications/unsubscribe-auth/ACkMtg29VXhpJ_TWVuaMWa_foFG36_0Uks5uKVIFgaJpZM4VhMe7 .

softdays commented 6 years ago

If I created it before executing the command everything is ok

softdays commented 6 years ago

Would it not be nice if the tool remove/create the destination directory for us?

jnwltr commented 6 years ago

Creation yes, deletion not sure. What if you had sth important there.

On Fri, 27 Jul 2018, 09:50 Remi Patriarche, notifications@github.com wrote:

Would it not be nice if the tool remove/create the destination directory for us?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jnwltr/swagger-angular-generator/issues/47#issuecomment-408340975, or mute the thread https://github.com/notifications/unsubscribe-auth/ACkMtq6Tm1TNodFRaLOf66emWeO4WFdhks5uKsY2gaJpZM4VhMe7 .

softdays commented 6 years ago

Yes you're right. So it's better to let the user handle that stuff.