Open coderaiser opened 8 years ago
Have just encountered this issue on Mac. The solution is simple:
brew install dos2unix
dos2unix ./node_modules/mongodb-migrate/bin/mongo-migrate.js
However, it won't let me create a Pull Request because git doesn't see it as a change in the repo.
Therefore, until it's fixed, i'm resorting to ./node_modules/.bin/mongo-migrate
instead of mongo-migrate
to be cross platform.
Mongo-migrate
version located onnpm
contains cariage returns:And this is the reason why
bin/mongo-migrate.js
doesn't work onlinux
andmac os
(do not know aboutwinsows
).And this is why you suggest to use:
Insteed of:
Could you please fix version on
npm
(you could usedos2unix
for this purpose) and create alias with same bin name as npm-package called:mongodb-migrate
.