express-mvc-generator icon indicating copy to clipboard operation
express-mvc-generator copied to clipboard

not working

Open ones006 opened this issue 7 years ago • 8 comments

when i run express, just read => env: node\r: No such file or directory. in osx sierra

ones006 avatar Jul 23 '17 14:07 ones006

See: https://superuser.com/questions/156516/is-there-a-bash-command-to-convert-r-n-to-n

elisaado avatar Jul 31 '17 14:07 elisaado

@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.

ericwastaken avatar Oct 22 '17 18:10 ericwastaken

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 avatar Oct 23 '17 11:10 elisaado

@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

ericwastaken avatar Oct 23 '17 17:10 ericwastaken

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 avatar Oct 24 '17 06:10 rajathavalam

@rajathavalam will it still be this repo or a new one?

ctsstc avatar Oct 24 '17 08:10 ctsstc

Probably new repo and new name :) (y)

rajathavalam avatar Oct 24 '17 08:10 rajathavalam

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 ^_^

elisaado avatar Oct 24 '17 09:10 elisaado