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

Errors trying to run numjs on npm or in jsbin #12

Closed
Bondifrench opened this issue Feb 1, 2017 · 3 comments
Closed

Errors trying to run numjs on npm or in jsbin #12

Bondifrench opened this issue Feb 1, 2017 · 3 comments

Comments

@Bondifrench
Copy link

Hi,

I tried to run numjs with RunKit, it gives me the following error messages:

Error Stack Trace Viewer 
Error: Cannot find module './build/Release/sharp.node'
at Module._resolveFilename in core module.js — line 325
at Module._load in core module.js — line 276
at Module.require in core module.js — line 353
at require in core internal/module.js — line 12
at sharp/index.js — line 12
node.js startup…

and when trying to use numjs in jsbin I don't get the expected results.
It looks like it's giving me back the full constructor in the console instead of the array.

@nicolaspanel
Copy link
Owner

It is possible that runkit do not support add-ons... I don't bandwidth right now to look deeper but PR are always welcome ;) best regards

@ds604
Copy link

ds604 commented Apr 10, 2017

Hi,
I got a related error trying to install numjs from npm (the browser version worked fine for me). The problem was with sharp@0.16.2 failing.

sharp@0.17.3 installs fine for me, so changing the dependency in the package.json to "sharp": "^0.17.0" allowed numjs to install without problem. I'll send a pull request with this change, if this is causing issues for others.

nicolaspanel added a commit that referenced this issue Apr 10, 2017
@nicolaspanel
Copy link
Owner

@Bondifrench : jsbin's console do not behave like node's or chrome's console. To have a properly rendered string represetation of the array you must use console.log(''+yourArray) or console.log(yourArray.toString().

@ds604 : updating sharp did not fix the runkit issue.

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