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

Support for Windows #2

Closed
nmquaan opened this issue Jul 20, 2018 · 4 comments
Closed

Support for Windows #2

nmquaan opened this issue Jul 20, 2018 · 4 comments

Comments

@nmquaan
Copy link

nmquaan commented Jul 20, 2018

When I run the package with command run-rs --version 4.0.0 occur error
ReferenceError: type is not defined at getOS (C:\Users\PC\AppData\Roaming\nvm\v8.9.4\node_modules\run-rs\dl.js:27:49) at dl (C:\Users\PC\AppData\Roaming\nvm\v8.9.4\node_modules\run-rs\dl.js:6:14) at run (C:\Users\PC\AppData\Roaming\nvm\v8.9.4\node_modules\run-rs\index.js:38:5) at run.next (<anonymous>) at onFulfilled (C:\Users\PC\AppData\Roaming\nvm\v8.9.4\node_modules\run-rs\node_modules\co\index.js:65:19) at C:\Users\PC\AppData\Roaming\nvm\v8.9.4\node_modules\run-rs\node_modules\co\index.js:54:5 at new Promise (<anonymous>) at co (C:\Users\PC\AppData\Roaming\nvm\v8.9.4\node_modules\run-rs\node_modules\co\index.js:50:10) at Object.<anonymous> (C:\Users\PC\AppData\Roaming\nvm\v8.9.4\node_modules\run-rs\index.js:23:1) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3) at Function.Module.runMain (module.js:684:10) at startup (bootstrap_node.js:187:16)
Please help me resolve this issue
Thanks for the support!

@aoi-umi
Copy link

aoi-umi commented Jul 27, 2018

@nmquaan
OS Support

Run-rs supports Linux and OSX. Windows is not currently supported.

@aoi-umi
Copy link

aoi-umi commented Jul 27, 2018

centos7
run-rs -v 4.0.0 --shell

Purging database...
Running '/usr/local/src/node-v8.0.0-linux-x64/lib/node_modules/run-rs/4.0.0/mongod'
Starting replica set...
Error: failed to start mongod with options --port=27017,--dbpath=/home/yiguain/data/27017,--bind_ip=localhost,--replSet=rs
at ChildProcess. (/usr/local/src/node-v8.0.0-linux-x64/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/server.js:375:27)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:887:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)

@vkarpov15
Copy link
Owner

Thanks for reporting, we only support OSX and Linux currently but we'll keep this issue open to track windows support.

@vkarpov15 vkarpov15 changed the title Error when run command 'run-rs --version 4.0.0" Support for Windows Jul 27, 2018
@Fonger
Copy link
Contributor

Fonger commented Aug 31, 2018

I add support for windows in my PR. You can try it.

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

4 participants