-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
[Alpine] Distribution Support #347
Comments
from my knowledge, there still isnt an alpine version of mongodb, so you need to either configure an version that works with that alpine, or provide your own file |
Thanks for the fast reply, |
did you already check these:
and could you provide debug output? *should be tried inside code, you can skip the postInstall-download with |
i just opened a new folder called test, ran npm init -y, ran npm install mongodb-memory-server and got the same error:
it has nothing to do with docker. its a windows problem not a docker problem. |
this error means the requested version (combined from wanted mongodb version, system and some extra options) does not exist, so please provide the debug log for us to investigate what url got generated and what it should have been |
Same thing happened to me. In windows, I went back to v6.2.1 and that worked |
This comment has been minimized.
This comment has been minimized.
could someone provide debug output to know what got generated? https://github.com/nodkz/mongodb-memory-server#enable-debug-mode |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The steps that fixed it for me:
|
as an update, i tried the
so it seems the only workaround for a while is to not use alpine |
@hasezoey thank you so much for you up to date. I was suffering with that error only on CI/CD pipeline and when I update node version to |
I'm having the same issue when using a github workflow. name: CI
on: [push]
jobs:
build:
name: Test
runs-on: ubuntu-latest
container:
image: node:15-buster # I tried this as per the recommendation above, but it still didn't work
steps:
# ... I know absolutely nothing about docker, images, etc. Does anyone know what I'm doing wrong? |
if you want an github workflow, this project uses them, so you could look at the files for an example |
Hi @hasezoey, thanks for the quick response. Specifically what in the |
I'm realizing that's probably just specifying which folder to execute the yarn command in 😅. Is it the node version? |
the important parts are: name: Node.js CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x] # the node versions to run this all against
steps:
- uses: actions/checkout@v2 # checkout the git repo
- name: Use Node.js ${{ matrix.node-version }} # install the node version for this run
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install node_modules # install the node modules
run: yarn
- name: Here whatever other steps might also be needed
run: something |
I changed a bit and it worked. Thanks! |
package: mongo-memory-server
What is the Problem?
So when ever i try to install mongodb-memory-server on my Windows 10 machine i get this error:
The mongo instance is dockerized(using node:alpine) but even just a simple install doesnt work.
the project is a microservice site and another service is already working just fine with mongodb-memory-server in version 6.6.4
so i tried to install 6.6.4 thinking the cause is probably a bad version but even 6.6.4 which works perfectly good for the other service doesnt work on this service for some reason and still gives the same error on npm install.
Code Example
Do you know why it happenes?
have no idea since the other service works just fine with 6.6.4 version.
The text was updated successfully, but these errors were encountered: