Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Get Error when Running Profiler Client #11

Open
Priyadarshi2259 opened this issue Jan 21, 2022 · 2 comments
Open

Get Error when Running Profiler Client #11

Priyadarshi2259 opened this issue Jan 21, 2022 · 2 comments

Comments

@Priyadarshi2259
Copy link

Hi
My server Runs fine but when i try to run client with below command
php artisan profiler:client

I get below Error
Starting Profiler Client ...
'node_modules' is not recognized as an internal or external command,
operable program or batch file.

@oddtwelve
Copy link

I have the same issue

@Dhamareshwarakumar
Copy link

  • make sure you ran npm install laravel-profiler-client --save-dev in the root folder
  • try modifying package.json like below
{
  "scripts": {
    "profiler-server": "node node_modules/laravel-profiler-client/server/server.js http=8099 ws=1901",
    "profiler-client": "http-server node_modules/laravel-profiler-client/dist/ -o -s",
    "ps": "npm run profiler-server",
    "pc": "npm run profiler-client"
  },
  "devDependencies": {
    "laravel-profiler-client": "^1.3.0"
  }
}
  • run
    • npm run ps
    • npm run ps

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants