Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Could not found module './build/Release/native' from 'index.js' #39

Open
theofilis opened this issue May 14, 2017 · 5 comments
Open

Could not found module './build/Release/native' from 'index.js' #39

theofilis opened this issue May 14, 2017 · 5 comments

Comments

@theofilis
Copy link

I install version 2.0.2 and on runtime I have this error:

Cannot find module './build/Release/native' from 'index.js'

  at Resolver.resolveModule (../../../../../../.nvm/v6.10.3/lib/node_modules/jest/node_modules/jest-resolve/build/index.js:181:17)
  at Object.<anonymous> (node_modules/hfc/node_modules/hashtable/index.js:1:139)

I have a workaround by change first line of index.js from var HashTable = require('./build/Release/native').HashTable; to var HashTable = require('./build/Release/native.node').HashTable;

I am currently working on Ubuntu 16.04 OS.

@nglj93
Copy link

nglj93 commented Jun 21, 2017

This is not working to me.
I am running this module in Centos

@rddill-IBM
Copy link
Contributor

Running Node V6 LTS. Had to change index.js from:

var HashTable = require('./build/Release/native').HashTable;

to:

var HashTable = require('./build/Release/native.node').HashTable;

App now loads successfully.

@theofilis
Copy link
Author

@rddill-IBM I had made the same change and work great on Node V6 and V7

@nglj93
Copy link

nglj93 commented Jul 7, 2017

Found that my issue was on multiple version of Node installed in /bin and also /usr/local/bin.
Beside I was running the module under /usr/local/bin. Hence the node-gyp does not run properly and module build failed. It took me so long to find this silly mistake.

@theofilis
Copy link
Author

With this library me to I had very difficult time until I figure out how I could solve some issues. As an example, It was impossible to compile the official version of it on latest OSX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants