Giter Site home page Giter Site logo

Comments (5)

ajmas avatar ajmas commented on July 20, 2024

After the issue above, I did get another issue after running the command another two times, though not sure in what way it may be related to the original issue.

╰─➤  run-rs --version 4.0.0                                                                                                                                                           1 ↵
Downloading MongoDB 4.0.0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 66.3M  100 66.3M    0     0  11.2M      0  0:00:05  0:00:05 --:--:-- 11.0M
x mongodb-osx-x86_64-4.0.0/README
x mongodb-osx-x86_64-4.0.0/THIRD-PARTY-NOTICES
x mongodb-osx-x86_64-4.0.0/MPL-2
x mongodb-osx-x86_64-4.0.0/GNU-AGPL-3.0
x mongodb-osx-x86_64-4.0.0/LICENSE-Community.txt
x mongodb-osx-x86_64-4.0.0/bin/mongodump
x mongodb-osx-x86_64-4.0.0/bin/mongorestore
x mongodb-osx-x86_64-4.0.0/bin/mongoexport
x mongodb-osx-x86_64-4.0.0/bin/mongoimport
x mongodb-osx-x86_64-4.0.0/bin/mongostat
x mongodb-osx-x86_64-4.0.0/bin/mongotop
x mongodb-osx-x86_64-4.0.0/bin/bsondump
x mongodb-osx-x86_64-4.0.0/bin/mongofiles
x mongodb-osx-x86_64-4.0.0/bin/mongoreplay
x mongodb-osx-x86_64-4.0.0/bin/mongod
x mongodb-osx-x86_64-4.0.0/bin/mongos
x mongodb-osx-x86_64-4.0.0/bin/mongo
x mongodb-osx-x86_64-4.0.0/bin/install_compass
mv: rename ./mongodb-osx-x86_64-4.0.0/bin to /Users/ajmas/npm/lib/node_modules/run-rs/src/4.0.0/bin: Directory not empty
Error: Command failed: mv ./mongodb-osx-x86_64-4.0.0/bin /Users/ajmas/npm/lib/node_modules/run-rs/src/4.0.0
mv: rename ./mongodb-osx-x86_64-4.0.0/bin to /Users/ajmas/npm/lib/node_modules/run-rs/src/4.0.0/bin: Directory not empty

    at checkExecSyncError (child_process.js:616:11)
    at execSync (child_process.js:653:13)
    at download (/Users/ajmas/npm/lib/node_modules/run-rs/src/download.js:54:5)
    at run (/Users/ajmas/npm/lib/node_modules/run-rs/index.js:80:20)
    at run.next (<anonymous>)
    at onFulfilled (/Users/ajmas/npm/lib/node_modules/run-rs/node_modules/co/index.js:65:19)
    at /Users/ajmas/npm/lib/node_modules/run-rs/node_modules/co/index.js:54:5
    at new Promise (<anonymous>)
    at co (/Users/ajmas/npm/lib/node_modules/run-rs/node_modules/co/index.js:50:10)
    at Object.<anonymous> (/Users/ajmas/npm/lib/node_modules/run-rs/index.js:30:1)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)

from run-rs.

dtboy1995 avatar dtboy1995 commented on July 20, 2024

The same issue i install run-rs on travis cl

+ [email protected]
added 95 packages from 60 contributors in 5.419s
before_install.2
0.00s$ run-rs -v 4.0.0 &
install
6.01s$ npm install
Downloading MongoDB 4.0.0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 67.3M  100 67.3M    0     0  54.8M      0  0:00:01  0:00:01 --:--:-- 54.8M
Copied MongoDB 4.0.0 to '/home/travis/.nvm/versions/node/v8.16.1/lib/node_modules/run-rs/src/4.0.0'
Purging database...
Running '/home/travis/.nvm/versions/node/v8.16.1/lib/node_modules/run-rs/4.0.0/mongod' [ 27017, 27018, 27019 ]
Starting replica set...
/home/travis/.nvm/versions/node/v8.16.1/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/replset.js:124
            .toString()
             ^
TypeError: Cannot read property 'toString' of null
    at ChildProcess.<anonymous> (/home/travis/.nvm/versions/node/v8.16.1/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/replset.js:124:14)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Socket.stream.socket.on (internal/child_process.js:336:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:561:12)
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
audited 876892 packages in 5.376s
found 0 vulnerabilities

from run-rs.

zxpectre avatar zxpectre commented on July 20, 2024

Same happened to me using 0.5.3 under Ubuntu.
Downgrading to 0.5.2 works fine.

from run-rs.

Anirudh0509 avatar Anirudh0509 commented on July 20, 2024

I am getting the same error, when I run command run-rs

Starting replica set...
/usr/local/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/replset.js:124
.toString()
^

TypeError: Cannot read property 'toString' of null
at ChildProcess. (/usr/local/lib/node_modules/run-rs/node_modules/mongodb-topology-manager/lib/replset.js:124:14)
at ChildProcess.emit (events.js:203:13)
at maybeClose (internal/child_process.js:1021:16)
at Socket. (internal/child_process.js:430:11)
at Socket.emit (events.js:203:13)
at Pipe. (net.js:588:12)

After implementing ProtonGustave fix for wrong path, I am getting the following error.

Error: Command failed: mv ./mongodb-osx-x86_64-4.0.6/bin {mainScriptDir}/4.0.6
mv: rename ./mongodb-osx-x86_64-4.0.6/bin to {mainScriptDir}/4.0.6: No such file or directory

at checkExecSyncError (child_process.js:621:11)
at execSync (child_process.js:657:15)
at download (/usr/local/lib/node_modules/run-rs/src/download.js:56:5)
at run (/usr/local/lib/node_modules/run-rs/index.js:80:20)
at run.next (<anonymous>)
at onFulfilled (/usr/local/lib/node_modules/run-rs/node_modules/co/index.js:65:19)
at /usr/local/lib/node_modules/run-rs/node_modules/co/index.js:54:5
at new Promise (<anonymous>)
at co (/usr/local/lib/node_modules/run-rs/node_modules/co/index.js:50:10)
at Object.<anonymous> (/usr/local/lib/node_modules/run-rs/index.js:30:1)
at Module._compile (internal/modules/cjs/loader.js:868:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:879:10)
at Module.load (internal/modules/cjs/loader.js:731:32)
at Function.Module._load (internal/modules/cjs/loader.js:644:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:931:10)
at internal/main/run_main_module.js:17:11

Please let us know how to resolve this. Thanks :)

from run-rs.

vkarpov15 avatar vkarpov15 commented on July 20, 2024

Should be fixed by #38 in 0.5.4

from run-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.