Giter VIP home page Giter VIP logo

Comments (10)

pdellepiane avatar pdellepiane commented on May 10, 2024

I have the same problem!

from laravel-echo-server.

aliselcuk avatar aliselcuk commented on May 10, 2024

What is your node version? Must be 6+

from laravel-echo-server.

RaymondWilkinson avatar RaymondWilkinson commented on May 10, 2024

My node version is 6.2.2
node v

from laravel-echo-server.

RaymondWilkinson avatar RaymondWilkinson commented on May 10, 2024

Docs are wrong. i had node v6.2.2 and it didn't work. Upgraded to 6.5.0 and works fine.

from laravel-echo-server.

jonnywilliamson avatar jonnywilliamson commented on May 10, 2024

@tlaverdure

I'm having the same issue, do we really have to update the the most cutting edge version of node to get this to work?

I took a look at the code, briefly.

Removing .F_OK from the end of the second parameter here https://github.com/tlaverdure/laravel-echo-server/blob/master/src/cli/cli.ts#L125

gets around the problem, (allow it to run on Node 5), but I don't know what adverse effects that will have.

from laravel-echo-server.

jonnywilliamson avatar jonnywilliamson commented on May 10, 2024

More comments. This could be a homestead vs production server thing

https://laracasts.com/discuss/channels/general-discussion/laravel-echo-server-on-homestead?page=1

from laravel-echo-server.

tlaverdure avatar tlaverdure commented on May 10, 2024

That line is supposed to make sure that there is a json file in the cwd. Supposed to work since v0.11.15 (Looks like I was deceived). I'm going to omit the second parameter and see if that helps.

https://nodejs.org/api/fs.html#fs_fs_access_path_mode_callback

from laravel-echo-server.

tlaverdure avatar tlaverdure commented on May 10, 2024

Please test the latest to see if that helps.

from laravel-echo-server.

jonnywilliamson avatar jonnywilliamson commented on May 10, 2024

@tlaverdure

Please see 1e41fbf#commitcomment-18978492

Perhaps you can use it still...

from laravel-echo-server.

jonnywilliamson avatar jonnywilliamson commented on May 10, 2024

CONFIRMED.

Change fs.constants.F_OK to fs.F_OK

Bad documentation at node.js

from laravel-echo-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.