mlomb / chat-analytics

Generate interactive, beautiful and insightful chat analysis reports
https://chatanalytics.app
GNU Affero General Public License v3.0
711 stars 51 forks source link

cant install the chat analytics package #117

Closed Tom28281 closed 3 months ago

Tom28281 commented 3 months ago

Whenever I try to use this via cmd, it tells me it needs to install chat-analytics@1.1.1. I type y but nothing happens here is my most recent attempt:

Microsoft Windows [Version 10.0.22631.3880] (c) Microsoft Corporation. All rights reserved.

C:\Windows\System32>npx chat-analytics Need to install the following packages: chat-analytics@1.1.1 Ok to proceed? (y) y

C:\Windows\System32>npx chat-analytics --version Need to install the following packages: chat-analytics@1.1.1 Ok to proceed? (y) y

C:\Windows\System32>

mlomb commented 3 months ago

Hey! I have been able to reproduce the issue (also with older versions), I will look into it!

Tom28281 commented 3 months ago

thank you!

mlomb commented 3 months ago

Hey! The issue should be resolved now. It is working on my machine. Can you try now?

PS C:\Users\Lombi> npx chat-analytics --help
Need to install the following packages:
chat-analytics@1.1.2
Ok to proceed? (y) y

Usage: chat-analytics -p <platform> -i <input files>

Options:
      --help      Show help                                            [boolean]
      --version   Show version number                                  [boolean]
  -p, --platform  The platform to generate for
   [string] [required] [choices: "discord", "messenger", "telegram", "whatsapp"]
  -i, --inputs    The input file(s) to use (glob)             [array] [required]
  -o, --output    The output HTML filename     [string] [default: "report.html"]
      --demo      Mark the report as a demo           [boolean] [default: false]

For more information visit: https://github.com/mlomb/chat-analytics
Or use the app online: https://chatanalytics.app

The problem was related to a dependency: whatsapp-chat-parser. You can find the issue here: https://github.com/Pustur/whatsapp-chat-parser/issues/256. Thanks to @Pustur for the fast fix :)