Cannot find module './build/Release/spellcheck'
Error: Cannot find module './build/Release/spellcheck'
@philwen -
Can you show us your output when running npm install spellcheck?
@Marak - This is output when running npm install spellcheck.
wenhy@wenhy-OptiPlex-980:~/project$ sudo npm install spellcheck sudo: unable to resolve host wenhy-OptiPlex-980
[email protected] install /home/wenhy/project/node_modules/spellcheck node-gyp rebuild
make: Entering directory /home/wenhy/project/node_modules/spellcheck/build' CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/affentry.o In file included from ../deps/hunspell/src/hunspell/affentry.cxx:9:0: ../deps/hunspell/src/hunspell/affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL); ^ ../deps/hunspell/src/hunspell/affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL); ^ In file included from ../deps/hunspell/src/hunspell/affentry.cxx:10:0: ../deps/hunspell/src/hunspell/csutil.hxx:65:32: warning: ‘utf_lst’ defined but not used [-Wunused-variable] static struct unicode_info utf_lst[] = { ^ CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/affixmgr.o In file included from ../deps/hunspell/src/hunspell/affixmgr.cxx:12:0: ../deps/hunspell/src/hunspell/affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL); ^ ../deps/hunspell/src/hunspell/affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL); ^ ../deps/hunspell/src/hunspell/affixmgr.cxx: In member function ‘int AffixMgr::parse_convtable(char*, FileMgr*, RepList**, const char*)’: ../deps/hunspell/src/hunspell/affixmgr.cxx:3654:64: warning: argument to ‘sizeof’ in ‘int strncmp(const char*, const char*, size_t)’ call is the same expression as the second source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] if (strncmp(piece, keyword, sizeof(keyword)) != 0) { ^ In file included from ../deps/hunspell/src/hunspell/affixmgr.cxx:15:0: ../deps/hunspell/src/hunspell/csutil.hxx: At global scope: ../deps/hunspell/src/hunspell/csutil.hxx:65:32: warning: ‘utf_lst’ defined but not used [-Wunused-variable] static struct unicode_info utf_lst[] = { ^ CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/csutil.o CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/dictmgr.o CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/filemgr.o CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/hashmgr.o In file included from ../deps/hunspell/src/hunspell/hashmgr.cxx:10:0: ../deps/hunspell/src/hunspell/csutil.hxx:65:32: warning: ‘utf_lst’ defined but not used [-Wunused-variable] static struct unicode_info utf_lst[] = { ^ CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/hunspell.o In file included from ../deps/hunspell/src/hunspell/hunspell.cxx:13:0: ../deps/hunspell/src/hunspell/csutil.hxx:65:32: warning: ‘utf_lst’ defined but not used [-Wunused-variable] static struct unicode_info utf_lst[] = { ^ CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/hunzip.o CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/phonet.o In file included from ../deps/hunspell/src/hunspell/phonet.cxx:35:0: ../deps/hunspell/src/hunspell/csutil.hxx:65:32: warning: ‘utf_lst’ defined but not used [-Wunused-variable] static struct unicode_info utf_lst[] = { ^ CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/replist.o In file included from ../deps/hunspell/src/hunspell/replist.cxx:9:0: ../deps/hunspell/src/hunspell/csutil.hxx:65:32: warning: ‘utf_lst’ defined but not used [-Wunused-variable] static struct unicode_info utf_lst[] = { ^ CXX(target) Release/obj.target/hunspell/deps/hunspell/src/hunspell/suggestmgr.o In file included from ../deps/hunspell/src/hunspell/suggestmgr.cxx:11:0: ../deps/hunspell/src/hunspell/csutil.hxx:65:32: warning: ‘utf_lst’ defined but not used [-Wunused-variable] static struct unicode_info utf_lst[] = { ^ AR(target) Release/obj.target/deps/hunspell/hunspell.a COPY Release/hunspell.a CXX(target) Release/obj.target/spellcheck/src/spellcheck.o SOLINK_MODULE(target) Release/obj.target/spellcheck.node SOLINK_MODULE(target) Release/obj.target/spellcheck.node: Finished COPY Release/spellcheck.node make: Leaving directory/home/wenhy/project/node_modules/spellcheck/build'
[email protected] node_modules/spellcheck
└── [email protected]