Re: [Express-js] Re: Express installation generates additional commas in js files

58 views
Skip to first unread message

Cameron Morris

unread,
May 16, 2013, 11:06:10 PM5/16/13
to expre...@googlegroups.com
Sweet changing var eol worked for me. I had moved passed this by just git cloning this https://github.com/brentertz/express-skeleton into a new directory to get the skeleton working, but this is even better. 


On Wed, May 15, 2013 at 4:23 PM, Andrew Metcalf <met...@gmail.com> wrote:
I actually was having this problem and fixed it by opening /usr/bin/express and finding the line that reads:

var eol = os.EOL

and changing it to:

var eol = '\n';

Probably not the best way to fix it but it works.

On Wednesday, May 15, 2013 12:48:30 PM UTC-4, Cameron Morris wrote:
Hey did you ever find an answer to this question? I'm also having this issue and can't find an answer. 

On Wednesday, 10 April 2013 13:43:03 UTC-4, Nikolay Vinogradskiy wrote:
Hi, I got a problem
When I install new app with express.js it puts additional commas in every file ( including jade), so after fresh installation all code goes in one line. The comma goes before every line of code
I am searching but can't really find a solution how to avoid this. I wounder if anyone faced this problem before.

--
You received this message because you are subscribed to a topic in the Google Groups "Express" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/express-js/AL97xfdhefk/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to express-js+...@googlegroups.com.
To post to this group, send email to expre...@googlegroups.com.
Visit this group at http://groups.google.com/group/express-js?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Cameron Morris

unread,
May 16, 2013, 11:20:06 PM5/16/13
to expre...@googlegroups.com
I also just tried changing 

var eol = os.EOL

to

var eol = 'win32' == os.platform() ? '\r\n' : '\n' 

which was in the make file of the files I pulled from this github repo  https://github.com/brentertz/express-skeleton and it also works. Weird that the new version of express has that bug.

Thanks again for your help.

Cameron

Reply all
Reply to author
Forward
0 new messages