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
meanworks verify for mongodb problem 2 #3
Comments
Same here - fails on Windows but passes on OS X.
The fix is to remove lines 22-25 from index.js: // Surrounds with double quotes if path contains a space
if (mongod.indexOf(' ') != -1) {
mongod = '"' + mongod + '"';
} I haven't tried that on Linux, but it works on Windows + OS X without these lines of code. Another possible alternative is to skip if on Windows (and change var os = require('os');
if (os.type() !== 'Windows_NT') {
// Surrounds with double quotes on non-Windows OS if path contains a space
if (mongod.indexOf(' ') !== -1) {
mongod = '"' + mongod + '"';
}
} If you are happy with one of these solutions, I'm happy to submit a PR. Just notifying you with more details for now. |
I implemented the first change and it worked perfectly. Thanks for the quick response and solution! |
@jsjqian @TylerMoeller i pushed the fix in 2.0.6: I had duplicate code doing the same thing. dcea9e4 |
Because of a space in the folder name, an error is produced when running 'meanworks verify' for problem 2
The text was updated successfully, but these errors were encountered: