Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

3.2.1 onwards not working on Windows #81

Open
steven-supersolid opened this issue Jul 1, 2016 · 2 comments
Open

3.2.1 onwards not working on Windows #81

steven-supersolid opened this issue Jul 1, 2016 · 2 comments
Assignees

Comments

@steven-supersolid
Copy link

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' }

@imlucas imlucas self-assigned this Jul 19, 2016
@steven-supersolid steven-supersolid changed the title 3.2.1 no longer working on Windows 3.2.1 onwards not working on Windows Jul 31, 2016
@rhuankarlus
Copy link

+1

@imlucas
Copy link
Contributor

imlucas commented Sep 26, 2018

@satyasinha mongodb-js/version-manager#131 will fix this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants