3
laravel-echo-server init

When i want to run this command in my project directory.

Project directory is D:\xampp\htdocs\app> when i run this, it show that

laravel-echo-server is not recognized as internal or external command operable program or batch file.

Any help?

Amit Gupta
  • 2,771
  • 2
  • 17
  • 31
  • I believe there is no such executable as `laravel-echo-server`. I guess you need to run `php` command passing necessary arguments to it (probably `laravel-echo-server` is name of the php script and so that it should follow after `php` command) – Serge Dec 25 '17 at 11:23
  • i tried it. but when i run php laravel-echo-server init it shows following error "Could not open input file: laravel-echo-server" – Abdul Wahab Invincible Dec 25 '17 at 11:26
  • well, I am not sure about all of that, probably you try to follow some manual? Probably you forgot to add extension to the file? I mean `php laravel-echo-server.php init`? You should try to find file called `laravel-echo-server` and pass it as argument using absolute path. – Serge Dec 25 '17 at 11:29
  • 'laravel-echo-server init' this is the command . may i change the path in environmental variables. i am stuck with this issue. – Abdul Wahab Invincible Dec 25 '17 at 11:30
  • laravel-echo-server is a Node package as you can see here https://github.com/tlaverdure/laravel-echo-server. @AbdulWahabInvincible Did you installed the laravel-echo-server inside your Laravel project? – common sense Dec 25 '17 at 11:30
  • yeah, just googled it. Firstly you need to run `npm install -g laravel-echo-server` (https://github.com/tlaverdure/laravel-echo-server) – Serge Dec 25 '17 at 11:33
  • Initialize with CLI Tool Run the init command in your project directory: $ `laravel-echo-server init` this is the process . writer write this. thats why i am asking . after this command laravel-echo-server.json file will setup in project directory. – Abdul Wahab Invincible Dec 25 '17 at 11:34
  • yes sir i first run `npm install -g laravel-echo-server` this command . after this i move to init command. – Abdul Wahab Invincible Dec 25 '17 at 11:36
  • It Still not working . laravel-echo-server is not recognized as an external or internal command. – Abdul Wahab Invincible Dec 25 '17 at 11:54
  • try install without `-g` flag, probably that can help. It should work. Try open cmd again. This seems to be an issue about node / npm installation. – Serge Dec 25 '17 at 13:00
  • i tried but not still working .. i tried it with out `-g` – Abdul Wahab Invincible Dec 25 '17 at 17:45

1 Answers1

3

After the install it seems the installation directory is

C:\Users\{USERNAME}\AppData\Roaming\npm

Just copy it in yours project folder and run again:

laravel-echo-server init
Hristian Yordanov
  • 650
  • 1
  • 6
  • 25