napi-mecab-setup
v0.0.0
Published
A setup script to be used in conjunction with napi-mecab.
Maintainers
Readme
Napi-Mecab-Setup
This is a post-install script used to download prebuilt binaries for use with napi-mecab. The script will determine which MeCab build to use for your system and download the requested dictionaries as well.
Usage:
# Choose your package manager flavor, and execute directly within
# your project that has already installed napi-mecab
npx napi-mecab-setup [...languageCodes]
# Examples
# Download all language dictionaries
npx napi-mecab-setup
# Download individual language dictionaries
npx napi-mecab-setup jp
npx napi-mecab-setup ko
# Download multiple language dictionaries (syntax is flexible)
npx napi-mecab-setup jp,ko
npx napi-mecab-setup jp, ko
npx napi-mecab-setup jp ko
# Throws an error when an unsupported language code is passed in
npx napi-mecab-setup ruSupported Languages
| Language | Language Code | | -------- | ------------- | | Japanese | jp | | Korean | ko |
Note on a Particular Error
If your setup failed, you may encounter an error that looks like this:
# ... Other error messages above
Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 76This is bug with the Nodejs runtime - you can ignore it and use the messages above it to determine why the setup failed.
