{"action":"created","issue":{"url":"https://api.github.com/repos/jazzyarchitects/fasttext-node/issues/5","repository_url":"https://api.github.com/repos/jazzyarchitects/fasttext-node","labels_url":"https://api.github.com/repos/jazzyarchitects/fasttext-node/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/jazzyarchitects/fasttext-node/issues/5/comments","events_url":"https://api.github.com/repos/jazzyarchitects/fasttext-node/issues/5/events","html_url":"https://github.com/jazzyarchitects/fasttext-node/issues/5","id":304404189,"number":5,"title":"Package fails on require('fasttext-node');","user":{"login":"vladikus10","id":9110189,"avatar_url":"https://avatars3.githubusercontent.com/u/9110189?v=4","gravatar_id":"","url":"https://api.github.com/users/vladikus10","html_url":"https://github.com/vladikus10","followers_url":"https://api.github.com/users/vladikus10/followers","following_url":"https://api.github.com/users/vladikus10/following{/other_user}","gists_url":"https://api.github.com/users/vladikus10/gists{/gist_id}","starred_url":"https://api.github.com/users/vladikus10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladikus10/subscriptions","organizations_url":"https://api.github.com/users/vladikus10/orgs","repos_url":"https://api.github.com/users/vladikus10/repos","events_url":"https://api.github.com/users/vladikus10/events{/privacy}","received_events_url":"https://api.github.com/users/vladikus10/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-12T14:52:41Z","updated_at":"2018-03-12T16:40:00Z","closed_at":"2018-03-12T16:40:00Z","author_association":"NONE","body":"I've just installed all of the required components and tried to install the **fasttext-node** npm package and it seems that the installation went fine, as got this in the terminal: \r\n\r\n```\r\n> fasttext-node@1.1.7 postinstall /home/vlad/Node/nlp/node_modules/fasttext-node\r\n> ./install.sh\r\n\r\nc++ compiler is installed... Cool...!!!\r\nGit is installed... Cool...!!!\r\nCurl is installed... Cool...!!!\r\nInstalling FastText-Node Module\r\nDownloading Fast Text Library\r\nCloning into 'fastText'...\r\nremote: Counting objects: 2069, done.\r\nremote: Total 2069 (delta 0), reused 0 (delta 0), pack-reused 2069\r\nReceiving objects: 100% (2069/2069), 4.33 MiB | 1.61 MiB/s, done.\r\nResolving deltas: 100% (1307/1307), done.\r\nDownloaded Fast Text Library.\r\nBuilding the library\r\nc++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/args.cc\r\nc++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/dictionary.cc\r\nc++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/productquantizer.cc\r\nc++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/matrix.cc\r\nc++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/qmatrix.cc\r\nc++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/vector.cc\r\nc++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/model.cc\r\nc++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/utils.cc\r\nc++ -pthread -std=c++0x -march=native -O3 -funroll-loops -c src/fasttext.cc\r\nc++ -pthread -std=c++0x -march=native -O3 -funroll-loops args.o dictionary.o productquantizer.o matrix.o qmatrix.o vector.o model.o utils.o fasttext.o src/main.cc -o fasttext\r\nInstalled FastText-Node Library\r\n\r\nBuilding node module\r\n./install.sh: line 79: /home/vlad/Node/nlp/node_modules/fasttext-node/node_modules/.bin/grunt: No such file or directory\r\nFinished installing module\r\n```\r\nHowever, when I try to use the module by loading it like so: `const fs = require('fasttext-node');`, I receive the following message:\r\n\r\n```\r\nmodule.js:549\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module '/home/vlad/Node/nlp/node_modules/fasttext-node/dist/lib'\r\n    at Function.Module._resolveFilename (module.js:547:15)\r\n    at Function.Module._load (module.js:474:25)\r\n    at Module.require (module.js:596:17)\r\n    at require (internal/module.js:11:18)\r\n    at Object.<anonymous> (/home/vlad/Node/nlp/node_modules/fasttext-node/index.js:4:18)\r\n    at Module._compile (module.js:652:30)\r\n    at Object.Module._extensions..js (module.js:663:10)\r\n    at Module.load (module.js:565:32)\r\n    at tryModuleLoad (module.js:505:12)\r\n    at Function.Module._load (module.js:497:3)\r\n\r\n```\r\nAny ideas why this is happening? FYI, I'm using Debian 9."},"comment":{"url":"https://api.github.com/repos/jazzyarchitects/fasttext-node/issues/comments/372376727","html_url":"https://github.com/jazzyarchitects/fasttext-node/issues/5#issuecomment-372376727","issue_url":"https://api.github.com/repos/jazzyarchitects/fasttext-node/issues/5","id":372376727,"user":{"login":"jazzyarchitects","id":11012686,"avatar_url":"https://avatars2.githubusercontent.com/u/11012686?v=4","gravatar_id":"","url":"https://api.github.com/users/jazzyarchitects","html_url":"https://github.com/jazzyarchitects","followers_url":"https://api.github.com/users/jazzyarchitects/followers","following_url":"https://api.github.com/users/jazzyarchitects/following{/other_user}","gists_url":"https://api.github.com/users/jazzyarchitects/gists{/gist_id}","starred_url":"https://api.github.com/users/jazzyarchitects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazzyarchitects/subscriptions","organizations_url":"https://api.github.com/users/jazzyarchitects/orgs","repos_url":"https://api.github.com/users/jazzyarchitects/repos","events_url":"https://api.github.com/users/jazzyarchitects/events{/privacy}","received_events_url":"https://api.github.com/users/jazzyarchitects/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T16:40:00Z","updated_at":"2018-03-12T16:40:00Z","author_association":"OWNER","body":"Welcome"}}
{"actor":{"display_login":"jazzyarchitects"}}