ognjengt / build-express-api

A Command line interface for instantly building an express rest api
MIT License
48 stars 9 forks source link

/usr/bin/env: ‘node\r’: No such file or directory #4

Open lensanag opened 6 years ago

lensanag commented 6 years ago

This happen on Linux( Ubuntu 18.04 ) maybe need CRLF instead LF?

ognjengt commented 6 years ago

I think the issue is that server is referencing ./rest/controllers, instead it should just reference ./controllers, will fix today. Does this happen on npm start?

lensanag commented 6 years ago

in the terminal: yarn add buid-express-api buid-express-api create-controller /usr/bin/env: ‘node\r’: No such file or directory

ognjengt commented 6 years ago

Yes, I think it is a CRLF problem, with files not having escape chars on strings, will look into that asap, in the meantime, you could open up a pull request if you manage to work something out.