3.2.1 onwards not working on Windows #81
Description
Example line from package.json:
"scripts": {
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start"
This works fine up to and including version 3.2.0 but not from 3.2.1 onwards, which gives the error:
[Error: Could not find a MongoDB version matching
{"version":"${MONGODB_VERSION:=3.0.8}","arch":"x86_64","platform":"win32","branch":"master","bits":"64","debug":false,"ext":".zip","distro":"2008plus-ssl"}
]
Changing package.json gets a little further, in that the version is downloaded correctly. So perhaps a compatibility error with cross-env?
"scripts": {
"pretest": "cross-env MONGODB_VERSION=3.0.8 ./node_modules/.bin/mongodb-runner start"
A symlink is then attempted but this step does not work unless the test is run in a DOS windows with admin access.
{ [Error: EPERM: operation not permitted, symlink 'C:\Users\Steven Shipton.mongodb\versions\mongodb-3.0.8-windows-64' -> 'C:\Users\Steven Shipton.mongodb\versions\mongodb-current']
errno: -4048,
code: 'EPERM',
syscall: 'symlink',
path: 'C:\Users\Steven Shipton.mongodb\versions\mongodb-3.0.8-windows-64',
dest: 'C:\Users\Steven Shipton.mongodb\versions\mongodb-current' }