ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.76k stars 1.08k forks source link

Spellchecker with nodejs 8, nodejs 10 #312

Closed Ke1i closed 4 years ago

Ke1i commented 6 years ago

Do you want to request a feature or report a bug? Bug

What is the current behavior? The spellchecker fails to launch

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Go to "Advanced settings" in an open document.
  2. Check the "Spell checking" checkbox
  3. Go back to the open document and type any misspelled words.

What is the expected behavior? Misspelt words should be highlighted in red and possible suggestions offered on right click.

Did this work in previous versions of DocumentServer? I haven't used Onlyoffice DocumentServer before, this is the first version I've installed.

DocumentServer version: 5.1.4

Operating System: Ubuntu Server 18.04 LTS

Browser version:

  1. Chromium Version 67.0.3396.18 (Developer Build) Ubuntu 18.04 (64-bit)
  2. Firefox 60.0.1 (64-bit)

screenshot_20180526_124810

Error logs from /var/log/onlyoffice/documentserver/spellchecker/ err.log out.log

agolybev commented 6 years ago

Hi @Ke1i, this issue caused by Node.js v8. Unfortunately, it's default version for Ubuntu 18.04. To repair the spellchecker you have to rebuild its components. First update npm:

$ sudo npm install -g npm

Next, install develop packages

$ sudo apt-get install build-essential git

Third, move to spellcheker directory:

$ cd /var/www/onlyoffice/documentserver/server/SpellChecker/ 

Stop documentserver services:

$ sudo supervisorctl stop all

Remove installed spellchecker components

$ sudo mv node_modules/ node_modules_old/

Build and install and spellchecker dependencies

$ sudo npm install

Start documentserver services:

$ sudo supervisorctl start all
Ke1i commented 6 years ago

Thanks @agolybev. I'll try what you've suggested.

Ke1i commented 6 years ago

Hey @agolybev.. I tried but I get the error below:

keli@Keli:/$ sudo apt-get install build-essential git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
git is already the newest version (1:2.17.0-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
keli@Keli:/$ cd /var/www/onlyoffice/documentserver/server/SpellChecker/ 
keli@Keli:/var/www/onlyoffice/documentserver/server/SpellChecker$ sudo supervisorctl stop all
onlyoffice-documentserver:gc: stopped
onlyoffice-documentserver:spellchecker: stopped
onlyoffice-documentserver:docservice: stopped
onlyoffice-documentserver:converter: stopped
keli@Keli:/var/www/onlyoffice/documentserver/server/SpellChecker$ sudo mv node_modules/ node_modules_old/
keli@Keli:/var/www/onlyoffice/documentserver/server/SpellChecker$ sudo npm install
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git submodule update -q --init --recursive
npm ERR! error: could not lock config file .git/config: Permission denied
npm ERR! error: could not lock config file .git/config: Permission denied
npm ERR! fatal: Failed to register url for submodule path 'src/hunspell'
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/keli/.npm/_logs/2018-05-28T20_30_41_345Z-debug.log

Error log at /home/keli/.npm/_logs/

2018-05-28T20_30_41_345Z-debug.log

Ke1i commented 6 years ago

Fixed it! I had to change the ownership of /var/www/onlyoffice/documentserver/server/SpellChecker/ from onlyoffice to keli (user) then run npm install (without sudo) Spellchecker now works, thanks @agolybev Here's the output.

sudo chown -R keli:www-data /var/www/onlyoffice/documentserver/server/SpellChecker/
keli@Keli:/var/www/onlyoffice/documentserver/server/SpellChecker$ npm install

> nodehun@2.0.11 install /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun
> node-gyp rebuild

make: Entering directory '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun/build'
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/affentry.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/affixmgr.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/csutil.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/filemgr.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/hashmgr.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/hunspell.o
../src/hunspell/src/hunspell/hunspell.cxx: In member function ‘bool HunspellImpl::spell(const string&, int*, std::__cxx11::string*)’:
../src/hunspell/src/hunspell/hunspell.cxx:565:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
       }
       ^
../src/hunspell/src/hunspell/hunspell.cxx:567:5: note: here
     case INITCAP: {
     ^~~~
../src/hunspell/src/hunspell/hunspell.cxx: In member function ‘std::vector<std::__cxx11::basic_string<char> > HunspellImpl::suggest(const string&)’:
../src/hunspell/src/hunspell/hunspell.cxx:903:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
       capwords = 1;
       ~~~~~~~~~^~~
../src/hunspell/src/hunspell/hunspell.cxx:904:5: note: here
     case HUHCAP: {
     ^~~~
../src/hunspell/src/hunspell/hunspell.cxx:1015:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
         capwords = 1;
         ~~~~~~~~~^~~
../src/hunspell/src/hunspell/hunspell.cxx:1016:7: note: here
       case HUHCAP: {
       ^~~~
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/hunzip.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/phonet.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/replist.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/suggestmgr.o
  AR(target) Release/obj.target/src/hunspell.a
  COPY Release/hunspell.a
  CXX(target) Release/obj.target/nodehun/src/nodehun.o
../src/nodehun.cpp:5:2: warning: #warning "Nodehun is no longer being actively maintained. Please email nathanjsweet@gmail.com If you are interested in taking over the project." [-Wcpp]
 #warning "Nodehun is no longer being actively maintained. Please email nathanjsweet@gmail.com If you are interested in taking over the project."
  ^~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::createNewNodehunFinish(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:90:38: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   argv[1] = cons->NewInstance(1, &ext);
                                      ^
In file included from /home/keli/.node-gyp/8.10.0/include/node/v8.h:26:0,
                 from /home/keli/.node-gyp/8.10.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
/home/keli/.node-gyp/8.10.0/include/node/v8.h:3847:31: note: declared here
                 Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
                               ^
/home/keli/.node-gyp/8.10.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In member function ‘bool Nodehun::SpellDictionary::spell(const char*)’:
../src/post0.12.0/nodehun.cpp:198:46: warning: ‘int Hunspell::spell(const char*, int*, char**)’ is deprecated [-Wdeprecated-declarations]
   bool correct = this->spellClass->spell(word);
                                              ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:131:20: note: declared here
   H_DEPRECATED int spell(const char* word, int* info = NULL, char** root = NULL);
                    ^~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::spellSuggestSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:274:41: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
     obj->spellClass->free_list(&arr, num);
                                         ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::spellSuggestionsSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:330:41: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
     obj->spellClass->free_list(&arr, num);
                                         ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In member function ‘int Nodehun::SpellDictionary::spellCheck(bool*, char***, const char*)’:
../src/post0.12.0/nodehun.cpp:342:42: warning: ‘int Hunspell::spell(const char*, int*, char**)’ is deprecated [-Wdeprecated-declarations]
   *correct = this->spellClass->spell(word);
                                          ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:131:20: note: declared here
   H_DEPRECATED int spell(const char* word, int* info = NULL, char** root = NULL);
                    ^~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp:344:47: warning: ‘int Hunspell::suggest(char***, const char*)’ is deprecated [-Wdeprecated-declarations]
     sugg = this->spellClass->suggest(arr, word);
                                               ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:141:20: note: declared here
   H_DEPRECATED int suggest(char*** slst, const char* word);
                    ^~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::sendSuggestions(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:383:89: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
 ->obj->spellClass->free_list(&(spellData->suggestions), spellData->numSuggest);
                                                                              ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::stemSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:632:41: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
     obj->spellClass->free_list(&arr, num);
                                         ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In member function ‘int Nodehun::SpellDictionary::stemWord(char***, const char*)’:
../src/post0.12.0/nodehun.cpp:644:45: warning: ‘int Hunspell::stem(char***, const char*)’ is deprecated [-Wdeprecated-declarations]
   int res = this->spellClass->stem(arr, word);
                                             ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:168:20: note: declared here
   H_DEPRECATED int stem(char*** slst, const char* word);
                    ^~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::stemFinish(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:667:79: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
  stemData->obj->spellClass->free_list(&stemData->results,stemData->numResults);
                                                                              ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::generateSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:729:41: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
     obj->spellClass->free_list(&arr, num);
                                         ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In member function ‘int Nodehun::SpellDictionary::generateWord(char***, const char*, const char*)’:
../src/post0.12.0/nodehun.cpp:740:56: warning: ‘int Hunspell::generate(char***, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
   int num = this->spellClass->generate(arr, word, word2);
                                                        ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:181:20: note: declared here
   H_DEPRECATED int generate(char*** slst, const char* word, const char* word2);
                    ^~~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::generateFinish(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:763:91: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
 a->obj->spellClass->free_list(&generateData->results,generateData->numResults);
                                                                              ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::analyzeSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:815:41: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
     obj->spellClass->free_list(&arr, num);
                                         ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In member function ‘int Nodehun::SpellDictionary::analyzeWord(char***, const char*)’:
../src/post0.12.0/nodehun.cpp:827:48: warning: ‘int Hunspell::analyze(char***, const char*)’ is deprecated [-Wdeprecated-declarations]
   int num = this->spellClass->analyze(arr, word);
                                                ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:164:20: note: declared here
   H_DEPRECATED int analyze(char*** slst, const char* word);
                    ^~~~~~~
In file included from ../src/nodehun.cpp:12:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::analyzeFinish(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:850:88: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
 ata->obj->spellClass->free_list(&analyzeData->results,analyzeData->numResults);
                                                                              ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:12:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/nodehun.node
  COPY Release/nodehun.node
make: Leaving directory '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun/build'
npm notice created a lockfile as package-lock.json. You should commit this file.
added 61 packages from 70 contributors and audited 130 packages in 122.129s
found 0 vulnerabilities

┌────────────────────────────────────────────────────────┐
│                npm update check failed                 │
│          Try running with sudo or get access           │
│          to the local update config store via          │
│ sudo chown -R $USER:$(id -gn $USER) /home/keli/.config │
└────────────────────────────────────────────────────────┘

screenshot from 2018-05-29 09-13-04

agolybev commented 6 years ago

Hi @Ke1i , thank you for your patience!

ShockwaveNN commented 6 years ago

@alex2003super see logs for errors at /var/log/onlyoffice/documentserver/spellchecker/

khayman123 commented 6 years ago

Hi @Ke1i, this issue caused by Node.js v8. Unfortunately, it's default version for Ubuntu 18.04. To repair the spellchecker you have to rebuild its components. First update npm:

$ sudo npm install -g npm

Next, install develop packages

$ sudo apt-get install build-essential git

Third, move to spellcheker directory:

$ cd /var/www/onlyoffice/documentserver/server/SpellChecker/ 

Stop documentserver services:

$ sudo supervisorctl stop all

Remove installed spellchecker components

$ sudo mv node_modules/ node_modules_old/

Build and install and spellchecker dependencies

$ sudo npm install

Start documentserver services:

$ sudo supervisorctl start all

This procedure is fine, but it must be exeute as root (su root), not sudo su. It is because npm uses your original user id to work. So if you execute all after sudo su then will crash. If you make first su root and then procedure (without sudo command) thenwill be fine.

Ke1i commented 6 years ago

Thanks @khayman123 , I guess I should close this then.

ShockwaveNN commented 6 years ago

@Ke1i sorry, no, we will close this issue then we release DocumentServer with support of Nodejs 8 out the box

Ke1i commented 6 years ago

Okay @ShockwaveNN, no problem.

strugee commented 5 years ago

Can't npm rebuild be run as a postinst script in the Debian packaging?

ShockwaveNN commented 5 years ago

@strugee as far as I remember adding npm rebuild will cause adding some more build dependencies to deb package and we don't want it

strugee commented 5 years ago

@ShockwaveNN it will require build-essential to be a dependency. But frankly the existing instructions telling the user to run npm install require build-essential too, it's just not marked in the package.

The real solution to this is to provide different packages for different distribution/Node version combinations. But until that happens, this hack will at least remove a step from the install process.

debugshan commented 5 years ago

I get the error below: buntu@VM-4-6-ubuntu:/var/www/onlyoffice/documentserver/server/SpellChecker$ sudo npm install

nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun/build'
gyp ERR! System Linux 4.4.0-130-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2019-05-17T08_34_50_146Z-debug.log
ubuntu@VM-4-6-ubuntu:/var/www/onlyoffice/documentserver/server/SpellChe
debugshan commented 5 years ago

see logs for errors at /var/log/onlyoffice/documentserver/spellchecker/

see logs for errors at /var/log/onlyoffice/documentserver/spellchecker/err.log

Error: The module '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun/build/Release/nodehun.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:730:18)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/var/www/onlyoffice/documentserver/server/SpellChecker/sources/spellCheck.js:13:17)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
internal/modules/cjs/loader.js:730
  return process.dlopen(module, path.toNamespacedPath(filename));
debugshan commented 5 years ago

@ShockwaveNN please help me

ShockwaveNN commented 5 years ago

@18309293349 seem you have permission errors, check permissions on /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun folder

debugshan commented 5 years ago

@ShockwaveNN After executing sudo npm install, there is no nodehun under the node_module directory

ShockwaveNN commented 5 years ago

@18309293349 This because npm install failed, this is permission problem with your files

olinorwell commented 5 years ago

running 'sudo su' before doing the 'sudo npm install' worked for me after previous errors (then 'exit' to return to my user).

Also 'sudo apt get install nodejs' earlier in the process was needed.

I was following this: https://helpcenter.onlyoffice.com/server/linux/document/linux-installation.aspx It might need updating with the above changes.

strugee commented 5 years ago

If running as root, npm drops privileges before running postinstall scripts, including native module rebuilds. This unfortunately interacts poorly with git dependencies (and maybe others? I'm not sure) which is what you're running into here with the permission problems.

ejgutierrez74 commented 4 years ago

Im facing the same problems, with onlyoffice 5.4.1 and ubuntu 18.04.... Followed the instructions in https://github.com/ONLYOFFICE/DocumentServer/issues/312#issuecomment-392479211

make: *** [Release/obj.target/nodehun/src/nodehun.o] Error 1
make: se sale del directorio '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.15.0-66-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/eduardo/.npm/_logs/2019-11-12T18_53_13_612Z-debug.log

Any ideas ??

strugee commented 4 years ago

@ejgutierrez74 please provide a more complete log, and make sure to use code formatting. As it is you've cut the most important parts out.

ejgutierrez74 commented 4 years ago

Sorry it was too long but here it si the full log:

`eduardo@eduardo-VirtualBox:/var/www/onlyoffice/documentserver/server/SpellChecker$ sudo npm install

nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun node-gyp rebuild

make: se entra en el directorio '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun/build'
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/affentry.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/affixmgr.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/csutil.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/filemgr.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/hashmgr.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/hunspell.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/hunzip.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/phonet.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/replist.o
  CXX(target) Release/obj.target/hunspell/src/hunspell/src/hunspell/suggestmgr.o
  AR(target) Release/obj.target/src/hunspell.a
  COPY Release/hunspell.a
  CXX(target) Release/obj.target/nodehun/src/nodehun.o
In file included from ../src/post0.12.0/nodehun.cpp:1:0,
                 from ../src/nodehun.cpp:7:
../src/post0.12.0/nodehun.hpp:131:24: error: ‘v8::Handle’ has not been declared
   static void Init(v8::Handle<v8::Object>, v8::Handle<v8::Object>);
                        ^~~~~~
../src/post0.12.0/nodehun.hpp:131:30: error: expected ‘,’ or ‘...’ before ‘<’ token
   static void Init(v8::Handle<v8::Object>, v8::Handle<v8::Object>);
                              ^
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:7:37: error: variable or field ‘Init’ declared void
 void Nodehun::SpellDictionary::Init(Handle<Object> exports, Handle<Object> module)
                                     ^~~~~~
../src/post0.12.0/nodehun.cpp:7:37: error: ‘Handle’ was not declared in this scope
../src/post0.12.0/nodehun.cpp:7:37: note: suggested alternative: ‘rand_r’
 void Nodehun::SpellDictionary::Init(Handle<Object> exports, Handle<Object> module)
                                     ^~~~~~
                                     rand_r
../src/post0.12.0/nodehun.cpp:7:50: error: expected primary-expression before ‘>’ token
 void Nodehun::SpellDictionary::Init(Handle<Object> exports, Handle<Object> module)
                                                  ^
../src/post0.12.0/nodehun.cpp:7:52: error: ‘exports’ was not declared in this scope
 void Nodehun::SpellDictionary::Init(Handle<Object> exports, Handle<Object> module)
                                                    ^~~~~~~
../src/post0.12.0/nodehun.cpp:7:61: error: ‘Handle’ was not declared in this scope
 void Nodehun::SpellDictionary::Init(Handle<Object> exports, Handle<Object> module)
                                                             ^~~~~~
../src/post0.12.0/nodehun.cpp:7:61: note: suggested alternative: ‘rand_r’
 void Nodehun::SpellDictionary::Init(Handle<Object> exports, Handle<Object> module)
                                                             ^~~~~~
                                                             rand_r
../src/post0.12.0/nodehun.cpp:7:74: error: expected primary-expression before ‘>’ token
 d Nodehun::SpellDictionary::Init(Handle<Object> exports, Handle<Object> module)
                                                                       ^
../src/post0.12.0/nodehun.cpp:7:76: error: ‘module’ was not declared in this scope
 d Nodehun::SpellDictionary::Init(Handle<Object> exports, Handle<Object> module)
                                                                         ^~~~~~
../src/post0.12.0/nodehun.cpp:7:76: note: suggested alternative: ‘mode_t’
 d Nodehun::SpellDictionary::Init(Handle<Object> exports, Handle<Object> module)
                                                                         ^~~~~~
                                                                            mode_t
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::createNewNodehun(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:51:100: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 on::TypeError(String::NewFromUtf8(isolate, "First argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:52:72: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
       callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:55:101: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 n::TypeError(String::NewFromUtf8(isolate, "Second argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:56:72: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
       callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:62:45: error: no matching function for call to ‘v8::Value::ToString()’
    String::Utf8Value arg0(args[0]->ToString());
                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:63:48: error: no matching function for call to ‘v8::Value::ToString()’
       String::Utf8Value arg1(args[1]->ToString());
                                                ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::createNewNodehunFinish(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:87:3: error: ‘Handle’ was not declared in this scope
   Handle<Value> ext = External::New(isolate, nodeData->obj);
   ^~~~~~
../src/post0.12.0/nodehun.cpp:87:3: note: suggested alternative: ‘handle’
   Handle<Value> ext = External::New(isolate, nodeData->obj);
   ^~~~~~
   handle
../src/post0.12.0/nodehun.cpp:87:15: error: expected primary-expression before ‘>’ token
   Handle<Value> ext = External::New(isolate, nodeData->obj);
               ^
../src/post0.12.0/nodehun.cpp:87:17: error: ‘ext’ was not declared in this scope
   Handle<Value> ext = External::New(isolate, nodeData->obj);
                 ^~~
../src/post0.12.0/nodehun.cpp:87:17: note: suggested alternative: ‘exit’
   Handle<Value> ext = External::New(isolate, nodeData->obj);
                 ^~~
                 exit
../src/post0.12.0/nodehun.cpp:92:62: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
   cb->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::New(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:114:135: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 mUtf8(isolate, "Use the new operator to create an instance of this object.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:126:114: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 n::Error(String::NewFromUtf8(isolate, "Constructor requires two arguments.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:130:114: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 n::TypeError(String::NewFromUtf8(isolate, "First argument must be a string")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:134:115: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 ::TypeError(String::NewFromUtf8(isolate, "Second argument must be a string")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:138:46: error: no matching function for call to ‘v8::Value::ToString()’
     String::Utf8Value arg0(args[0]->ToString());
                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:139:43: error: no matching function for call to ‘v8::Value::ToString()’
  String::Utf8Value arg1(args[1]->ToString());
                                           ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::isCorrect(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:159:100: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 on::TypeError(String::NewFromUtf8(isolate, "First argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:160:72: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [3])’
       callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:165:48: error: no matching function for call to ‘v8::Value::ToString()’
       String::Utf8Value arg0(args[0]->ToString());
                                                ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::isCorrectSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:186:48: error: no matching function for call to ‘v8::Value::ToString()’
       String::Utf8Value arg0(args[0]->ToString());
                                                ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:191:113: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 ::TypeError(String::NewFromUtf8(isolate, "First argument must be a string.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In member function ‘bool Nodehun::SpellDictionary::spell(const char*)’:
../src/post0.12.0/nodehun.cpp:198:46: warning: ‘int Hunspell::spell(const char*, int*, char**)’ is deprecated [-Wdeprecated-declarations]
   bool correct = this->spellClass->spell(word);
                                              ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:131:20: note: declared here
   H_DEPRECATED int spell(const char* word, int* info = NULL, char** root = NULL);
                    ^~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::sendCorrect(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:219:91: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 cal<Value>::New(isolate, String::NewFromUtf8(isolate, corrData->word.c_str()));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:221:62: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [3])’
   cb->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::spellSuggest(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:239:100: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 on::TypeError(String::NewFromUtf8(isolate, "First argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:240:72: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [3])’
       callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:245:48: error: no matching function for call to ‘v8::Value::ToString()’
       String::Utf8Value arg0(args[0]->ToString());
                                                ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::spellSuggestSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:266:46: error: no matching function for call to ‘v8::Value::ToString()’
     String::Utf8Value arg0(args[0]->ToString());
                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:271:95: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 nValue().Set(Local<Value>::New(isolate, String::NewFromUtf8(isolate, arr[0])));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:274:41: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
     obj->spellClass->free_list(&arr, num);
                                         ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:278:113: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 ::TypeError(String::NewFromUtf8(isolate, "First argument must be a string.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::spellSuggestions(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:295:100: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 on::TypeError(String::NewFromUtf8(isolate, "First argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:296:72: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [3])’
       callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:301:48: error: no matching function for call to ‘v8::Value::ToString()’
       String::Utf8Value arg0(args[0]->ToString());
                                                ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::spellSuggestionsSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:322:46: error: no matching function for call to ‘v8::Value::ToString()’
     String::Utf8Value arg0(args[0]->ToString());
                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:328:52: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       a->Set(i, String::NewFromUtf8(isolate, arr[i]));
                                                    ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:328:53: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       a->Set(i, String::NewFromUtf8(isolate, arr[i]));
                                                     ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:3412:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:330:41: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
     obj->spellClass->free_list(&arr, num);
                                         ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:334:113: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 ::TypeError(String::NewFromUtf8(isolate, "First argument must be a string.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In member function ‘int Nodehun::SpellDictionary::spellCheck(bool*, char***, const char*)’:
../src/post0.12.0/nodehun.cpp:342:42: warning: ‘int Hunspell::spell(const char*, int*, char**)’ is deprecated [-Wdeprecated-declarations]
   *correct = this->spellClass->spell(word);
                                          ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:131:20: note: declared here
   H_DEPRECATED int spell(const char* word, int* info = NULL, char** root = NULL);
                    ^~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:344:47: warning: ‘int Hunspell::suggest(char***, const char*)’ is deprecated [-Wdeprecated-declarations]
     sugg = this->spellClass->suggest(arr, word);
                                               ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:141:20: note: declared here
   H_DEPRECATED int suggest(char*** slst, const char* word);
                    ^~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::sendSuggestions(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:365:92: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 al<Value>::New(isolate, String::NewFromUtf8(isolate, spellData->word.c_str()));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:376:71: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  suglist->Set(t,String::NewFromUtf8(isolate, spellData->suggestions[t]));
                                                                       ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:376:72: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  suglist->Set(t,String::NewFromUtf8(isolate, spellData->suggestions[t]));
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:3412:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:380:71: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       argv[2] = String::NewFromUtf8(isolate, spellData->suggestions[0]);
                                                                       ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:383:89: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
 ->obj->spellClass->free_list(&(spellData->suggestions), spellData->numSuggest);
                                                                              ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:385:62: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [4])’
   cb->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::addDictionary(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:404:95: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 on::TypeError(String::NewFromUtf8(isolate, "First argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:405:67: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [1])’
  callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                   ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:415:114: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 n::TypeError(String::NewFromUtf8(isolate, "First argument must be a string")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:418:43: error: no matching function for call to ‘v8::Value::ToString()’
  String::Utf8Value arg0(args[0]->ToString());
                                           ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::addDictionarySync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:440:113: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 ::TypeError(String::NewFromUtf8(isolate, "First argument must be a buffer.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::addDictionaryFinish(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:468:226: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 dding the dictionary to the nodehun class, because the buffer was deformed."));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:470:64: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [1])’
     cb->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::addRemoveWordInit(const v8::FunctionCallbackInfo<v8::Value>&, bool)’:
../src/post0.12.0/nodehun.cpp:503:46: error: no matching function for call to ‘v8::Value::ToString()’
     String::Utf8Value arg0(args[0]->ToString());
                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:511:95: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 on::TypeError(String::NewFromUtf8(isolate, "First argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:513:67: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
  callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                   ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:523:115: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 ::TypeError(String::NewFromUtf8(isolate, "First argument must be a string.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::addRemoveWordInitSync(const v8::FunctionCallbackInfo<v8::Value>&, bool)’:
../src/post0.12.0/nodehun.cpp:544:46: error: no matching function for call to ‘v8::Value::ToString()’
     String::Utf8Value arg0(args[0]->ToString());
                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:549:113: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 ::TypeError(String::NewFromUtf8(isolate, "First argument must be a string.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::addRemoveWordFinish(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:580:244: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
  of the word. The dictionary may be corrupted, or the word may be malfored."));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:581:113: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 e>::New(isolate, String::NewFromUtf8(isolate, wordData->word.c_str())) : Local<Value>::New(isolate, Null(isolate));
                                                                     ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:583:64: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
     cb->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::stem(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:599:100: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 on::TypeError(String::NewFromUtf8(isolate, "First argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:601:72: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
       callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:606:52: error: no matching function for call to ‘v8::Value::ToString()’
       v8::String::Utf8Value arg0(args[0]->ToString());
                                                    ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::stemSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:625:50: error: no matching function for call to ‘v8::Value::ToString()’
     v8::String::Utf8Value arg0(args[0]->ToString());
                                                  ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:630:52: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       a->Set(i, String::NewFromUtf8(isolate, arr[i]));
                                                    ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:630:53: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       a->Set(i, String::NewFromUtf8(isolate, arr[i]));
                                                     ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:3412:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:632:41: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
     obj->spellClass->free_list(&arr, num);
                                         ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:636:113: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 ::TypeError(String::NewFromUtf8(isolate, "First argument must be a string.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In member function ‘int Nodehun::SpellDictionary::stemWord(char***, const char*)’:
../src/post0.12.0/nodehun.cpp:644:45: warning: ‘int Hunspell::stem(char***, const char*)’ is deprecated [-Wdeprecated-declarations]
   int res = this->spellClass->stem(arr, word);
                                             ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:168:20: note: declared here
   H_DEPRECATED int stem(char*** slst, const char* word);
                    ^~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::stemFinish(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:666:69: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     suglist->Set(t,String::NewFromUtf8(isolate, stemData->results[t]));
                                                                     ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:666:70: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     suglist->Set(t,String::NewFromUtf8(isolate, stemData->results[t]));
                                                                      ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:3412:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:667:79: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
  stemData->obj->spellClass->free_list(&stemData->results,stemData->numResults);
                                                                              ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:671:62: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
   cb->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::generate(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:686:100: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 on::TypeError(String::NewFromUtf8(isolate, "First argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:688:72: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
       callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:693:101: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 n::TypeError(String::NewFromUtf8(isolate, "Second argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:695:72: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
       callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:700:52: error: no matching function for call to ‘v8::Value::ToString()’
       v8::String::Utf8Value arg0(args[0]->ToString());
                                                    ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:701:52: error: no matching function for call to ‘v8::Value::ToString()’
       v8::String::Utf8Value arg1(args[1]->ToString());
                                                    ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::generateSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:721:50: error: no matching function for call to ‘v8::Value::ToString()’
     v8::String::Utf8Value arg0(args[0]->ToString());
                                                  ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:722:50: error: no matching function for call to ‘v8::Value::ToString()’
     v8::String::Utf8Value arg1(args[1]->ToString());
                                                  ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:727:52: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       a->Set(i, String::NewFromUtf8(isolate, arr[i]));
                                                    ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:727:53: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       a->Set(i, String::NewFromUtf8(isolate, arr[i]));
                                                     ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:3412:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:729:41: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
     obj->spellClass->free_list(&arr, num);
                                         ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:733:125: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 String::NewFromUtf8(isolate, "First and second arguments must be a string.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In member function ‘int Nodehun::SpellDictionary::generateWord(char***, const char*, const char*)’:
../src/post0.12.0/nodehun.cpp:740:56: warning: ‘int Hunspell::generate(char***, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
   int num = this->spellClass->generate(arr, word, word2);
                                                        ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:181:20: note: declared here
   H_DEPRECATED int generate(char*** slst, const char* word, const char* word2);
                    ^~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::generateFinish(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:762:73: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     suglist->Set(t,String::NewFromUtf8(isolate, generateData->results[t]));
                                                                         ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:762:74: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     suglist->Set(t,String::NewFromUtf8(isolate, generateData->results[t]));
                                                                          ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:3412:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:763:91: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
 a->obj->spellClass->free_list(&generateData->results,generateData->numResults);
                                                                              ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:767:62: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
   cb->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::analyze(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:782:100: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 on::TypeError(String::NewFromUtf8(isolate, "First argument must be a string"));
                                                                             ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:784:72: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
       callback->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:789:52: error: no matching function for call to ‘v8::Value::ToString()’
       v8::String::Utf8Value arg0(args[0]->ToString());
                                                    ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::analyzeSync(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/post0.12.0/nodehun.cpp:808:50: error: no matching function for call to ‘v8::Value::ToString()’
     v8::String::Utf8Value arg0(args[0]->ToString());
                                                  ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2572:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2588:31: note:   candidate expects 1 argument, 0 provided
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:813:52: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       a->Set(i, String::NewFromUtf8(isolate, arr[i]));
                                                    ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:813:53: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       a->Set(i, String::NewFromUtf8(isolate, arr[i]));
                                                     ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:3412:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:815:41: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
     obj->spellClass->free_list(&arr, num);
                                         ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:819:113: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
 ::TypeError(String::NewFromUtf8(isolate, "First argument must be a string.")));
                                                                            ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In member function ‘int Nodehun::SpellDictionary::analyzeWord(char***, const char*)’:
../src/post0.12.0/nodehun.cpp:827:48: warning: ‘int Hunspell::analyze(char***, const char*)’ is deprecated [-Wdeprecated-declarations]
   int num = this->spellClass->analyze(arr, word);
                                                ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:164:20: note: declared here
   H_DEPRECATED int analyze(char*** slst, const char* word);
                    ^~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp: In static member function ‘static void Nodehun::SpellDictionary::analyzeFinish(uv_work_t*, int)’:
../src/post0.12.0/nodehun.cpp:849:72: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     suglist->Set(t,String::NewFromUtf8(isolate, analyzeData->results[t]));
                                                                        ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:2936:21: note: declared here
       Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                     ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:849:73: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     suglist->Set(t,String::NewFromUtf8(isolate, analyzeData->results[t]));
                                                                         ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8-internal.h:14:0,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:25,
                 from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:3412:22: note: declared here
                 bool Set(uint32_t index, Local<Value> value));
                      ^
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:850:88: warning: ‘void Hunspell::free_list(char***, int)’ is deprecated [-Wdeprecated-declarations]
 ata->obj->spellClass->free_list(&analyzeData->results,analyzeData->numResults);
                                                                              ^
In file included from ../src/post0.12.0/nodehun.hpp:4:0,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
../src/hunspell/src/hunspell/hunspell.hxx:155:21: note: declared here
   H_DEPRECATED void free_list(char*** slst, int n);
                     ^~~~~~~~~
In file included from ../src/nodehun.cpp:7:0:
../src/post0.12.0/nodehun.cpp:854:62: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Object>, const unsigned int&, v8::Local<v8::Value> [2])’
   cb->Call(isolate->GetCurrentContext()->Global(), argc, argv);
                                                              ^
In file included from /home/eduardo/.cache/node-gyp/12.13.0/include/node/node.h:63:0,
                 from ../src/post0.12.0/nodehun.hpp:5,
                 from ../src/post0.12.0/nodehun.cpp:1,
                 from ../src/nodehun.cpp:7:
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/home/eduardo/.cache/node-gyp/12.13.0/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
nodehun.target.mk:116: recipe for target 'Release/obj.target/nodehun/src/nodehun.o' failed
make: *** [Release/obj.target/nodehun/src/nodehun.o] Error 1
make: se sale del directorio '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.15.0-66-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/eduardo/.npm/_logs/2019-11-14T19_15_11_152Z-debug.log
`

If you need anything else just let me know....

Thanks

ShockwaveNN commented 4 years ago

Please note that issue related with node 12 is here https://github.com/ONLYOFFICE/DocumentServer/issues/652

ejgutierrez74 commented 4 years ago

Is it going to be fixed in a near future ?

Thanks

Magnus9999 commented 4 years ago

The problem in nodjs version in Ubuntu 18, by default the nodejs is set version 13. For DocumentServer need nodejs 8, SystemRequirements. Try it

sudo supervisorctl stop all
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.35.1/install.sh | bash
source /etc/profile
nvm install 8.16.2
cd /var/www/onlyoffice/documentserver/server/SpellChecker
mv node_modules/ node_modules_old/
npm install
supervisorctl start all
ejgutierrez74 commented 4 years ago

It didnt work:

eduardo@eduardo-VirtualBox:/var/www/onlyoffice/documentserver/server/SpellChecker$ npm install
npm WARN checkPermissions Missing write access to /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules
npm ERR! path /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules'
npm ERR!  { Error: EACCES: permission denied, access '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules'
npm ERR!   stack: 'Error: EACCES: permission denied, access \'/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules' }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/eduardo/.npm/_logs/2019-12-11T20_10_01_597Z-debug.log
eduardo@eduardo-VirtualBox:/var/www/onlyoffice/documentserver/server/SpellChecker$ cat /home/eduardo/.npm/_logs/2019-12-11T20_06_50_050Z-debug.log
cat: /home/eduardo/.npm/_logs/2019-12-11T20_06_50_050Z-debug.log: No existe el archivo o el directorio
eduardo@eduardo-VirtualBox:/var/www/onlyoffice/documentserver/server/SpellChecker$ cat /home/eduardo/.npm/_logs/2019-12-11T20_10_01_597Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/home/eduardo/.nvm/versions/node/v8.16.2/bin/node',
1 verbose cli   '/home/eduardo/.nvm/versions/node/v8.16.2/bin/npm',
1 verbose cli   'install' ]
2 info using npm@6.4.1
3 info using node@v8.16.2
4 verbose npm-session 9bac23df188a20ea
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall spellchecker@1.0.1
7 info lifecycle spellchecker@1.0.1~preinstall: spellchecker@1.0.1
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 timing stage:loadCurrentTree Completed in 307ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 102ms
16 silly install loadAllDepsIntoIdealTree
17 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 131ms
18 timing stage:loadIdealTree Completed in 251ms
19 silly currentTree spellchecker@1.0.1
19 silly currentTree ├── accepts@1.3.7
19 silly currentTree ├── array-flatten@1.1.1
19 silly currentTree ├── body-parser@1.19.0
19 silly currentTree ├── bytes@3.1.0
19 silly currentTree ├── co@4.6.0
19 silly currentTree ├── config@2.0.2
19 silly currentTree ├── content-disposition@0.5.3
19 silly currentTree ├── content-type@1.0.4
19 silly currentTree ├── cookie-signature@1.0.6
19 silly currentTree ├── cookie@0.4.0
19 silly currentTree ├── debug@2.6.9
19 silly currentTree ├── depd@1.1.2
19 silly currentTree ├── destroy@1.0.4
19 silly currentTree ├── ee-first@1.1.1
19 silly currentTree ├── encodeurl@1.0.2
19 silly currentTree ├── escape-html@1.0.3
19 silly currentTree ├── etag@1.8.1
19 silly currentTree ├── express@4.17.1
19 silly currentTree ├── faye-websocket@0.10.0
19 silly currentTree ├── finalhandler@1.1.2
19 silly currentTree ├── forwarded@0.1.2
19 silly currentTree ├── fresh@0.5.2
19 silly currentTree ├── http-errors@1.7.2
19 silly currentTree ├── http-parser-js@0.4.10
19 silly currentTree ├── iconv-lite@0.4.24
19 silly currentTree ├── inherits@2.0.3
19 silly currentTree ├── ipaddr.js@1.9.0
19 silly currentTree ├── json5@1.0.1
19 silly currentTree ├── media-typer@0.3.0
19 silly currentTree ├── merge-descriptors@1.0.1
19 silly currentTree ├── methods@1.1.2
19 silly currentTree ├── mime-db@1.42.0
19 silly currentTree ├── mime-types@2.1.25
19 silly currentTree ├── mime@1.6.0
19 silly currentTree ├── minimist@1.2.0
19 silly currentTree ├── ms@2.0.0
19 silly currentTree ├── negotiator@0.6.2
19 silly currentTree ├── on-finished@2.3.0
19 silly currentTree ├── parseurl@1.3.3
19 silly currentTree ├── path-to-regexp@0.1.7
19 silly currentTree ├── proxy-addr@2.0.5
19 silly currentTree ├── qs@6.7.0
19 silly currentTree ├── range-parser@1.2.1
19 silly currentTree ├── raw-body@2.4.0
19 silly currentTree ├── safe-buffer@5.1.2
19 silly currentTree ├── safer-buffer@2.1.2
19 silly currentTree ├─┬ send@0.17.1
19 silly currentTree │ └── ms@2.1.1
19 silly currentTree ├── serve-static@1.14.1
19 silly currentTree ├── setprototypeof@1.1.1
19 silly currentTree ├── sockjs@0.3.19
19 silly currentTree ├── statuses@1.5.0
19 silly currentTree ├── toidentifier@1.0.0
19 silly currentTree ├── type-is@1.6.18
19 silly currentTree ├── unpipe@1.0.0
19 silly currentTree ├── utils-merge@1.0.1
19 silly currentTree ├── uuid@3.3.3
19 silly currentTree ├── vary@1.1.2
19 silly currentTree ├── websocket-driver@0.7.3
19 silly currentTree └── websocket-extensions@0.1.3
20 silly idealTree spellchecker@1.0.1
20 silly idealTree ├── accepts@1.3.7
20 silly idealTree ├── array-flatten@1.1.1
20 silly idealTree ├── body-parser@1.19.0
20 silly idealTree ├── bytes@3.1.0
20 silly idealTree ├── co@4.6.0
20 silly idealTree ├── config@2.0.2
20 silly idealTree ├── content-disposition@0.5.3
20 silly idealTree ├── content-type@1.0.4
20 silly idealTree ├── cookie-signature@1.0.6
20 silly idealTree ├── cookie@0.4.0
20 silly idealTree ├── debug@2.6.9
20 silly idealTree ├── depd@1.1.2
20 silly idealTree ├── destroy@1.0.4
20 silly idealTree ├── ee-first@1.1.1
20 silly idealTree ├── encodeurl@1.0.2
20 silly idealTree ├── escape-html@1.0.3
20 silly idealTree ├── etag@1.8.1
20 silly idealTree ├── express@4.17.1
20 silly idealTree ├── faye-websocket@0.10.0
20 silly idealTree ├── finalhandler@1.1.2
20 silly idealTree ├── forwarded@0.1.2
20 silly idealTree ├── fresh@0.5.2
20 silly idealTree ├── http-errors@1.7.2
20 silly idealTree ├── http-parser-js@0.4.10
20 silly idealTree ├── iconv-lite@0.4.24
20 silly idealTree ├── inherits@2.0.3
20 silly idealTree ├── ipaddr.js@1.9.0
20 silly idealTree ├── json5@1.0.1
20 silly idealTree ├── media-typer@0.3.0
20 silly idealTree ├── merge-descriptors@1.0.1
20 silly idealTree ├── methods@1.1.2
20 silly idealTree ├── mime-db@1.42.0
20 silly idealTree ├── mime-types@2.1.25
20 silly idealTree ├── mime@1.6.0
20 silly idealTree ├── minimist@1.2.0
20 silly idealTree ├── ms@2.0.0
20 silly idealTree ├── negotiator@0.6.2
20 silly idealTree ├── nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113
20 silly idealTree ├── on-finished@2.3.0
20 silly idealTree ├── parseurl@1.3.3
20 silly idealTree ├── path-to-regexp@0.1.7
20 silly idealTree ├── proxy-addr@2.0.5
20 silly idealTree ├── qs@6.7.0
20 silly idealTree ├── range-parser@1.2.1
20 silly idealTree ├── raw-body@2.4.0
20 silly idealTree ├── safe-buffer@5.1.2
20 silly idealTree ├── safer-buffer@2.1.2
20 silly idealTree ├─┬ send@0.17.1
20 silly idealTree │ └── ms@2.1.1
20 silly idealTree ├── serve-static@1.14.1
20 silly idealTree ├── setprototypeof@1.1.1
20 silly idealTree ├── sockjs@0.3.19
20 silly idealTree ├── statuses@1.5.0
20 silly idealTree ├── toidentifier@1.0.0
20 silly idealTree ├── type-is@1.6.18
20 silly idealTree ├── unpipe@1.0.0
20 silly idealTree ├── utils-merge@1.0.1
20 silly idealTree ├── uuid@3.3.3
20 silly idealTree ├── vary@1.1.2
20 silly idealTree ├── websocket-driver@0.7.3
20 silly idealTree └── websocket-extensions@0.1.3
21 silly install generateActionsToTake
22 warn checkPermissions Missing write access to /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules
23 timing stage:rollbackFailedOptional Completed in 0ms
24 timing stage:runTopLevelLifecycles Completed in 633ms
25 silly saveTree spellchecker@1.0.1
25 silly saveTree ├── co@4.6.0
25 silly saveTree ├─┬ config@2.0.2
25 silly saveTree │ └─┬ json5@1.0.1
25 silly saveTree │   └── minimist@1.2.0
25 silly saveTree ├─┬ express@4.17.1
25 silly saveTree │ ├─┬ accepts@1.3.7
25 silly saveTree │ │ ├─┬ mime-types@2.1.25
25 silly saveTree │ │ │ └── mime-db@1.42.0
25 silly saveTree │ │ └── negotiator@0.6.2
25 silly saveTree │ ├── array-flatten@1.1.1
25 silly saveTree │ ├─┬ body-parser@1.19.0
25 silly saveTree │ │ ├── bytes@3.1.0
25 silly saveTree │ │ ├── content-type@1.0.4
25 silly saveTree │ │ ├─┬ debug@2.6.9
25 silly saveTree │ │ │ └── ms@2.0.0
25 silly saveTree │ │ ├── depd@1.1.2
25 silly saveTree │ │ ├─┬ http-errors@1.7.2
25 silly saveTree │ │ │ ├── inherits@2.0.3
25 silly saveTree │ │ │ ├── setprototypeof@1.1.1
25 silly saveTree │ │ │ ├── statuses@1.5.0
25 silly saveTree │ │ │ └── toidentifier@1.0.0
25 silly saveTree │ │ ├─┬ iconv-lite@0.4.24
25 silly saveTree │ │ │ └── safer-buffer@2.1.2
25 silly saveTree │ │ ├─┬ on-finished@2.3.0
25 silly saveTree │ │ │ └── ee-first@1.1.1
25 silly saveTree │ │ ├── qs@6.7.0
25 silly saveTree │ │ ├─┬ raw-body@2.4.0
25 silly saveTree │ │ │ └── unpipe@1.0.0
25 silly saveTree │ │ └─┬ type-is@1.6.18
25 silly saveTree │ │   └── media-typer@0.3.0
25 silly saveTree │ ├─┬ content-disposition@0.5.3
25 silly saveTree │ │ └── safe-buffer@5.1.2
25 silly saveTree │ ├── content-type@1.0.4
25 silly saveTree │ ├── cookie-signature@1.0.6
25 silly saveTree │ ├── cookie@0.4.0
25 silly saveTree │ ├── debug@2.6.9
25 silly saveTree │ ├── depd@1.1.2
25 silly saveTree │ ├── encodeurl@1.0.2
25 silly saveTree │ ├── escape-html@1.0.3
25 silly saveTree │ ├── etag@1.8.1
25 silly saveTree │ ├─┬ finalhandler@1.1.2
25 silly saveTree │ │ └── parseurl@1.3.3
25 silly saveTree │ ├── fresh@0.5.2
25 silly saveTree │ ├── merge-descriptors@1.0.1
25 silly saveTree │ ├── methods@1.1.2
25 silly saveTree │ ├── on-finished@2.3.0
25 silly saveTree │ ├── parseurl@1.3.3
25 silly saveTree │ ├── path-to-regexp@0.1.7
25 silly saveTree │ ├─┬ proxy-addr@2.0.5
25 silly saveTree │ │ ├── forwarded@0.1.2
25 silly saveTree │ │ └── ipaddr.js@1.9.0
25 silly saveTree │ ├── qs@6.7.0
25 silly saveTree │ ├── range-parser@1.2.1
25 silly saveTree │ ├── safe-buffer@5.1.2
25 silly saveTree │ ├─┬ send@0.17.1
25 silly saveTree │ │ ├── destroy@1.0.4
25 silly saveTree │ │ ├── mime@1.6.0
25 silly saveTree │ │ └── ms@2.1.1
25 silly saveTree │ ├── serve-static@1.14.1
25 silly saveTree │ ├── setprototypeof@1.1.1
25 silly saveTree │ ├── statuses@1.5.0
25 silly saveTree │ ├── type-is@1.6.18
25 silly saveTree │ ├── utils-merge@1.0.1
25 silly saveTree │ └── vary@1.1.2
25 silly saveTree ├── nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113
25 silly saveTree └─┬ sockjs@0.3.19
25 silly saveTree   ├─┬ faye-websocket@0.10.0
25 silly saveTree   │ └─┬ websocket-driver@0.7.3
25 silly saveTree   │   ├── http-parser-js@0.4.10
25 silly saveTree   │   └── websocket-extensions@0.1.3
25 silly saveTree   └── uuid@3.3.3
26 verbose stack Error: EACCES: permission denied, access '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules'
27 verbose cwd /var/www/onlyoffice/documentserver/server/SpellChecker
28 verbose Linux 4.15.0-72-generic
29 verbose argv "/home/eduardo/.nvm/versions/node/v8.16.2/bin/node" "/home/eduardo/.nvm/versions/node/v8.16.2/bin/npm" "install"
30 verbose node v8.16.2
31 verbose npm  v6.4.1
32 error path /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules
33 error code EACCES
34 error errno -13
35 error syscall access
36 error Error: EACCES: permission denied, access '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules'
36 error  { Error: EACCES: permission denied, access '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules'
36 error   stack: 'Error: EACCES: permission denied, access \'/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules\'',
36 error   errno: -13,
36 error   code: 'EACCES',
36 error   syscall: 'access',
36 error   path: '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules' }
37 error The operation was rejected by your operating system.
37 error It is likely you do not have the permissions to access this file as the current user
37 error
37 error If you believe this might be a permissions issue, please double-check the
37 error permissions of the file and its containing directories, or try running
37 error the command again as root/Administrator (though this is not recommended).
38 verbose exit [ -13, true ]

What ive done: sudo supervisorctl stop all sudo chown -R $USER:$(id -gn $USER) /home/eduardo/.config sudo wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.35.1/install.sh | bash source /etc/profile cd /var/www/onlyoffice/documentserver/server/SpellChecker sudo mv node_modules/ node_modules_old/ sudo npm install

eduardo@eduardo-VirtualBox:/var/www/onlyoffice/documentserver/server/SpellChecker$ sudo npm install

> nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun
> node-gyp rebuild

gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun/build'
gyp ERR! System Linux 4.15.0-72-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/eduardo/.npm/_logs/2019-12-11T20_18_10_783Z-debug.log

Close and exit terminal. Open another terminal.

nvm install 8.16.2 And get error and logs from above...

eduardo@eduardo-VirtualBox:/var/www/onlyoffice/documentserver/server/SpellChecker$ nvm install 8.16.2
v8.16.2 is already installed.
Now using node v8.16.2 (npm v6.4.1)

Edit 14 December:

I have now nodejs 8.16.2 and node. I had a binary version of nodejs 12.X but now i deleted it, i have both nodejs and node 8.16.2

eduardo@eduardo-VirtualBox:/var/www/onlyoffice/documentserver/server/SpellChecker$ sudo npm install
[sudo] contraseña para eduardo: 
Unhandled rejection Error: Command failed: /usr/bin/git clone --depth=1 -q -b master https://git@github.com/ONLYOFFICE/nodehun.git /home/eduardo/.npm/_cacache/tmp/git-clone-8422e26e
/home/eduardo/.npm/_cacache/tmp/git-clone-8422e26e/.git: Permiso denegado

    at ChildProcess.exithandler (child_process.js:281:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Socket.stream.socket.on (internal/child_process.js:336:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:561:12)

updated 1 package and audited 138 packages in 1.072s
found 0 vulnerabilities

Seems error has to be related to nodehun:


eduardo@eduardo-VirtualBox:/var/www/onlyoffice/documentserver/server/SpellChecker$ npm install nodehun
npm ERR! path /home/eduardo/.npm/_cacache/tmp/git-clone-90c73bd8
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/home/eduardo/.npm/_cacache/tmp/git-clone-90c73bd8'
npm ERR!  { Error: EACCES: permission denied, mkdir '/home/eduardo/.npm/_cacache/tmp/git-clone-90c73bd8'
npm ERR!   cause: 
npm ERR!    { Error: EACCES: permission denied, mkdir '/home/eduardo/.npm/_cacache/tmp/git-clone-90c73bd8'
npm ERR!      errno: -13,
npm ERR!      code: 'EACCES',
npm ERR!      syscall: 'mkdir',
npm ERR!      path: '/home/eduardo/.npm/_cacache/tmp/git-clone-90c73bd8' },
npm ERR!   stack: 'Error: EACCES: permission denied, mkdir \'/home/eduardo/.npm/_cacache/tmp/git-clone-90c73bd8\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/home/eduardo/.npm/_cacache/tmp/git-clone-90c73bd8' }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
eduardo@eduardo-VirtualBox:/var/www/onlyoffice/documentserver/server/SpellChecker$ sudo npm install nodehun
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master https://git@github.com/ONLYOFFICE/nodehun.git /home/eduardo/.npm/_cacache/tmp/git-clone-1221ba1d
npm ERR! /home/eduardo/.npm/_cacache/tmp/git-clone-1221ba1d/.git: Permiso denegado
npm ERR! 
kyrg commented 4 years ago

Dear all, is this issue solved? i have an onlyoffice instance and cannot make spellchevker to work. The instance runs debian 9.1, nodejs -v v12.14.1, npm -v 6.13.7. during npm install there are numerous warnings and erros while at the end:

/root/.cache/node-gyp/12.14.1/include/node/v8.h:4193:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
                                           ^~~~
/root/.cache/node-gyp/12.14.1/include/node/v8.h:4193:43: note:   candidate expects 4 arguments, 3 provided
make: *** [Release/obj.target/nodehun/src/nodehun.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:223:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.9.0-11-amd64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/onlyoffice/documentserver/server/SpellChecker/node_modules/nodehun
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v5.0.7
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nodehun@git+https://git@github.com/ONLYOFFICE/nodehun.git#c9ba32e5ff117ecc51e8e119c0753a021e519113 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
kyrg commented 4 years ago

solved and Spellchecker works fine in nextcloud. Sometimes it is usefull to only do what is exactly mentioned (Node.js: version 8.12.0)!! sudo npm install -g n sudo n 8.12.0 sudo npm install supervisorctl start all

ShockwaveNN commented 4 years ago

We'll remove dependency of nodejs in future v5.5.0 release All nodejs services packed to exe files using pkg

ShockwaveNN commented 4 years ago

DocumentServer v5.5.0 is released. This problem should be fixed.

lugetego commented 3 years ago

Why my onlyoffice installation from apps on the nextcloud 20.07 doesn’t have the SpellChecker directory?

ShockwaveNN commented 3 years ago

@lugetego Please do not hijack issue closed for one year and create new one

Also please make sure that you're are not using Community Document Server

Please note that Community Document Server was developed by Nextcloud Team, if you have any issues with it, please contact them in the appropriate GitHub repository.

If you are using our official method of integration (Nextcloud + dedicated Document Server instance as per our installation guide), we will be glad to answer your questions. Please see more info on our forum.