Mongo-express | Patch file found for package mongodb-query-parser

1.1k views Asked by At

I am trying to get rid of the following error message.

patch-package 6.2.2
Applying patches...
Error: Patch file found for package mongodb-query-parser which is not present at node_modules/mongodb-query-parser

This message appears when I try to install mongo-express. Locally this is no problem, because npm install keeps progressing after the error message.

But when I try to run it on gitlab-pipeline it exits the job.

Is there any workaround?

2

There are 2 answers

1
CP Lepage On

Temporary quick fix is to install mongo-express without the postinstall.

npm install mongo-express --ignore-scripts && npm install

That way the patch-package isn't called and at least the CI doesn't break. But I'm not sure how unsecure this is...

Hopefully going to be fix soon! I opened an issue
Cheers

0
QuintionTang On
npm install -g [email protected]

Install globally and remove mongo-express from package.json.