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

node-mcp23017 module doesn't work #137

Closed
scramble45 opened this issue Jan 9, 2017 · 3 comments
Closed

node-mcp23017 module doesn't work #137

scramble45 opened this issue Jan 9, 2017 · 3 comments

Comments

@scramble45
Copy link

Using: [email protected] full version / Node v6.4.0

https://www.npmjs.com/package/node-mcp23017

$ enclose mcp23017.js

/node_code/node_modules/i2c/main.js
  error  Cannot find module './lib/i2c' from '/node_code/node_modules/i2c'

Any suggestions?

@igorklopov
Copy link
Owner

i2c is written in CoffeeScript and published in CoffeeScript as well. However it is not good because:

@scramble45 scramble45 reopened this Jan 9, 2017
@scramble45 scramble45 reopened this Jan 9, 2017
@scramble45
Copy link
Author

scramble45 commented Jan 9, 2017

So I converted the node-i2c library to native javascript from coffee script. Seems to be working:
https://github.com/scramble45/i2cjs

I have modified my node-mcp23017 fork to point to this: https://github.com/scramble45/i2cjs, Now I am seeing this when I try to enclose:

 $ enclose mcp23017.js

/node_code/node_modules/node-mcp23017/node_modules/i2c/build/Release/i2c.node
  warning  Cannot include native addon into executable.
  The addon file must be distributed with executable.

Any suggestions, I am fine with moving the i2c.node to the running folder it doesn't need to be enclosed I just need to code enclosed.

@scramble45
Copy link
Author

resolved

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

2 participants