Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

npm install error #2

Open
kizaski opened this issue Sep 7, 2022 · 2 comments · May be fixed by #4
Open

npm install error #2

kizaski opened this issue Sep 7, 2022 · 2 comments · May be fixed by #4

Comments

@kizaski
Copy link

kizaski commented Sep 7, 2022

I'm getting a npm ERR! gyp ERR! build error which is caused by an issue in the better-sqlite3 dependency that was fixed in a later version.

I was able to install mkanki and run the example code by upgrading the dependency without any problems.

@kizaski
Copy link
Author

kizaski commented Sep 7, 2022

New issue, now anki rejects the created file with the message "Unable to read file. It probably requires a newer version of Anki to import." despite on the latest version, which is im guessing because this repo is really old. Oops. Well at least it makes the file now?

@kizaski
Copy link
Author

kizaski commented Sep 7, 2022

Alright I solved the issue. The actual error was "loError("Custom { kind: Other, error: "Invalid checksum" }")" as given by running anki from source. After some debugging I noticed that the .apkg file created by mkanki is much smaller than the one created by genanki, I decided to extract and rezip it without compressing, change the ext to apkg and voilà it opened without a problem. So in mkanki compression should be turned off when zipping.

@kizaski kizaski linked a pull request Sep 7, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant