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

npm module missing request module #1

Closed
spencermountain opened this issue Oct 29, 2012 · 7 comments
Closed

npm module missing request module #1

spencermountain opened this issue Oct 29, 2012 · 7 comments

Comments

@spencermountain
Copy link

hey, not sure if i'm missing something, but i can't get 'opal-node' to run anything after installing it from npm.

but if i clone the most recent build it works flawlessly
is there a difference between 0.3.2 and the 0.3.1 one on npm?

the error i'm getting is:
module.js:337
throw new Error("Cannot find module '" + request + "'");

this is a great project.
thanks,

@elia
Copy link
Member

elia commented Oct 29, 2012

I'll try to replicate the problem on my box, maybe I got some paths wrong…

Can you post the exact commands you used (both the one that didn't worked and the one that worked)?
Have you tried through rvm?

thx ;)

@spencermountain
Copy link
Author

hey, ya i did:

npm-install -g opal
opal-node

and get

Opal

module.js:235
  var start = request.substring(0, 2);
                  ^
TypeError: Cannot call method 'substring' of undefined

but then i got it working by:

git clone https://github.com/opal/opal-node.git
./opal-node/bin/opal-node ~/myfile.rb

@elia
Copy link
Member

elia commented Oct 29, 2012

You ran opal-node without args?

That's a problem because there's no usage or help message or interactive console yet, it only accepts a .rb file as argument

@spencermountain
Copy link
Author

sorry, same error with ~/myfile.rb as arg[1]

@elia
Copy link
Member

elia commented Oct 29, 2012

You right, was fixed in 0.3.2, I forgot to publish it during "RVM rush" sorry :)

@elia
Copy link
Member

elia commented Oct 29, 2012

of course now is pushed to the npm registry

@spencermountain
Copy link
Author

thanks! you're the best.

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