express-mvc-generator
express-mvc-generator copied to clipboard
not working
when i run express, just read => env: node\r: No such file or directory. in osx sierra
See: https://superuser.com/questions/156516/is-there-a-bash-command-to-convert-r-n-to-n
@elisaado - I see your link and understand what that's about. However, could you expand on how this link is applicable to running express and getting the above message? What exactly needs to be put through Dos2Unix? Any insights would be helpful.
Hi @ericwastaken, sorry I was a little unclear... I had this issue too, and I found out that the code of this repo has \r\n line endings, and when you execute it on linux, it only converts the \n to newline and not the \r, so it'll stay there and give a syntax error.
The file you need to put through Dos2Unix are all files of the repo.
@elisaado, thanks for the clarification. I understand now. Personally, this makes the repo unattractive.
However, I did check the repo (I cloned MASTER just now) and ran this on my macOS:
# List all files and execute the FILE command, filter for the string CRLF which will display for files that have CRLF endings
$ find . -type f -exec file "{}" \; | grep CRLF
The result was that none of the files have CRLF. I had installed from NPM, so it's possible that the npm version is older?
Still, in case anyone wants to try, the command to run to update the entire repo would be:
# From the root of the repo, run dos2unix to update ALL files to UNIX format...
$ find . -type f -exec dos2unix "{}" \;
Anyhow, I met my need a different way, so I didn't test further, but figured I'd share.
Eric
Sorry for the late reply , I have been a little bit busy with my development work , unable to check your issues . i am developing advanced full featured ECMAScript 6 based express-mvc-generator(popular template engines, popular databases, popular third party modules, angular 4 , react , Profiler, Authentication and Social media integrations ). I will update you once it done .
Thanks for using express-mvc-generator , Happy Coding .
@rajathavalam will it still be this repo or a new one?
Probably new repo and new name :) (y)
Hi @ericwastaken, It might be that the npm package is older yes. I think everything is good because @rajathavalam now knows about the issue.
Uhm, I don't know what else to say... Except for, Happy Coding and have a nice day!
, Eli ^_^