-
Notifications
You must be signed in to change notification settings - Fork 627
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
process.dlopen(filename, module.exports); #22
Comments
interesting can you give me a bit more info? node -e 'console.log(process.versions)'
node -e 'console.log(require("qrcode/package.json").version);'
node -e 'console.log(require("qrcode/node_modules/canvas"));' perhaps a gist with example code? i haven't run into this before but i would expect it has to do with node canvas. does npm install complete successfully? can you rm -fr the node_modules directory and try to npm install again? just thoughts |
$ node -e 'console.log(process.versions)' $ node -e 'console.log(require("qrcode/package.json").version);' $ node -e 'console.log(require("qrcode/node_modules/canvas"));' module.js:485 I am using windows 7 and i followed the steps the provided at https://github.com/LearnBoost/node-canvas/wiki/Installation---Windows to install canvas, Npm install was successful. tried installing again and it installs fine I am using the below code to test:- QRCode.toDataURL('i am a pony!',function(err,url){ |
im guessing cairo is missing. http://cairographics.org/ its a dependency of node canvas which is the component that failed to build based on the output you gave me |
i followed the steps to install cairo from https://github.com/LearnBoost/node-canvas/wiki/Installation---Windows and it looked like it installed fine. how can i build canvas again? |
you should be able to run npm rebuild in your modules directory but you should probably just delete the npm install again. if you get any error output from install let me know.
|
the output when i say npm install G:\nodejs\qr2>npm install
G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas>node "C:\Program Files\nod |
does it work?
|
nope, same error pops up again. |
could you upgrade node to the most recent version 0.10.21 http://nodejs.org/download/ would be awesome. 0.8.20 is not even the most recent 0.8 http://nodejs.org/dist/v0.8.26/ is needed at least if you want to stay on 0.8. i dont use windows so i would start searching the node canvas issues to proceed https://github.com/LearnBoost/node-canvas/issues in the magical future i don't want to depend on node canvas at all and then we wont have any native module issues. |
upgraded node to 0.10.21 but still get another error now module.js:356 |
I ran into the same problem using node v4.2.2, same as I installed it globally. $ npm install -save qrcode
npm http 304 https://registry.npmjs.org/base64-js/0.0.2 $ qrcode hi Error: Module did not self-register. |
This is still an issue yet unsolved? |
This is an error folks can get if they have an issue with native modules. This is not really a qrcode issue unless i need to bump the version of canvas. if you are having the problem let me know :) |
As per this comment could you guys try running the dependencywalker on whatever I was having the same error (process.dlopen) and it turned out I was missing LIBEAY32.DLL in scrypt.node (a different module than node-qrcode altogether) |
very helpful thanks @laggingreflex ! |
I had the same Issue so I did This solved it |
I have deleted node_modules and again installed node_modules its working fine. |
Just had the same problem. |
module.js:485
process.dlopen(filename, module.exports);
^
Error: The specified module could not be found.
How do i fix this??
The text was updated successfully, but these errors were encountered: