ActiveUnits / mongodb-rest

REST Server for MongoDB (using node.js)
www.degrunt.net
GNU Lesser General Public License v3.0
25 stars 11 forks source link

Does it work on windows? #2

Open dur41d opened 10 years ago

dur41d commented 10 years ago

I'm getting an error installing it on windows 7.

outbounder commented 10 years ago

never tested it on windows 7... What's the error?

Danita commented 10 years ago

I'm having trouble installing on Windows 7 x64, last lines of npm-debug.log are:

819 error error rolling back Error: ENOTEMPTY, rmdir 'C:\Users\Daniela\Documents\Proj\contacts\node_modules\mongodb-rest2\node_modules\express'
1819 error error rolling back  mongodb-rest2@2.0.14 { [Error: ENOTEMPTY, rmdir 'C:\Users\Daniela\Documents\Proj\contacts\node_modules\mongodb-rest2\node_modules\express']
1819 error error rolling back   errno: 53,
1819 error error rolling back   code: 'ENOTEMPTY',
1819 error error rolling back   path: 'C:\\Users\\Daniela\\Documents\\Proj\\contacts\\node_modules\\mongodb-rest2\\node_modules\\express' }
1820 error notsup Unsupported
1820 error notsup Not compatible with your operating system or architecture: mongodb@0.9.6-21
1820 error notsup Valid OS:    linux,darwin,freebsd
1820 error notsup Valid Arch:  any
1820 error notsup Actual OS:   win32
1820 error notsup Actual Arch: x64
1821 error System Windows_NT 6.1.7601
1822 error command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "http://github.com/ActiveUnits/mongodb-rest/tarball/master"
1823 error cwd C:\Users\Daniela\Documents\Proj\contacts
1824 error node -v v0.10.5
1825 error npm -v 1.2.18
1826 error code EBADPLATFORM
1827 verbose exit [ 1, true ]
Danita commented 10 years ago

Hmm, required version of mongodb (0.9.6-21) is not built for Windows. Tried installing latest mongodb driver but still doesn't work. It seems this project stagnated a bit and libraries have moved on since last update. It's a pity because I couldn't find another NodeJS REST backend for MongoDB.

outbounder commented 10 years ago

Yes you're right. I'm currently having high load on other projects, so I'm not able to dedicate free time for this right now, definitely updating the implementation to use latest packages will resolve the above problem.

@Danita if you can do that - any pull requests are more than welcome :)

It is also suitable to get this impl. out of a forked repo as it differs completely from its original form based on tdegrunt/mongodb-rest. In case you're willing to join forces and collaborate on it, let me know so that we can group up :)

Danita commented 10 years ago

@outbounder Would love to collaborate but I'm not experienced with node.js :worried: I'll try to do some experiments and get back when I have something.