-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cannot find module weak #13
Comments
I'm having the same issue. |
What version of node.js are you using? |
for me: v0.10.29 but I am also getting this when I try to install:
|
This seems like it is being included from within the |
I'm also encountering this issue on Windows 8 using |
Maybe a windows problem? Has anyone experienced this issue outside of a windows environment? |
Looks like this might help. http://stackoverflow.com/questions/23571499/node-js-and-phantomjs-cannot-find-module-weak |
Ah... maybe there is something I can do to the library that does this... https://github.com/sgentle/phantomjs-node#use-it-in-windows |
Well, my experience was in OSX 10.9.5 |
I have seen this before when my Python was outdated and the node-gyp was unable to compile. In my case, I fixed it by upgrading Python using Homebrew.
Let me know if that helps. |
updating python didn't seem to help. Tried reinstalling makemeasandwich after and this is what I get.
|
This actually looks like you do not have the OSX Mac build tools installed which is required to install phantomjs. You can get them with XCode by downloading it from the AppStore. Although, I was able to install them on my machine by typing |
that's odd because I installed them a couple weeks ago...I'll take a |
Same issue. |
To fix this, I disable 'weak' by setting it to false. In jquery.go.js, line #73: Change:
to:
Ref: phantomjs-node/blob/master/README.markdown#use-it-in-windows |
➜ ~ makemeasandwich
Logging in.
module.js:340
throw err;
^
Error: Cannot find module 'weak'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at new D (/usr/local/lib/node_modules/makemeasandwich/node_modules/jquerygo/node_modules/phantom/node_modules/dnode/index.js:28:20)
at module.exports (/usr/local/lib/node_modules/makemeasandwich/node_modules/jquerygo/node_modules/phantom/node_modules/dnode/index.js:8:12)
at /usr/local/lib/node_modules/makemeasandwich/node_modules/jquerygo/node_modules/phantom/phantom.js:138:13
at Server.handler (/usr/local/lib/node_modules/makemeasandwich/node_modules/jquerygo/node_modules/phantom/node_modules/shoe/index.js:22:9)
at Server.EventEmitter.emit (events.js:95:17)
at App.emit (/usr/local/lib/node_modules/makemeasandwich/node_modules/jquerygo/node_modules/phantom/node_modules/shoe/node_modules/sockjs/lib/sockjs.js:182:27)
➜ ~
The text was updated successfully, but these errors were encountered: