rest
rest copied to clipboard
Running mongodb-downloader after installation.
I have mongodb already installed on my system. The npm install
which was ran at the end of yo rest
started the mongodb-downloader
(wich failed, and so I noticed it was there).
I'm not able to trace which package's postinstall script this caused or what. I don't need mongodb to be downloaded. Is there a way to skip this whole downloading-mongodb-thingy?
Thanks, Jakub
Can anyone help with this, i'm trying to make a container that has only the api.
Hi,
I know this is an old issue, but I had the same problem and found out the source of this behaviour.
Actually the mongodb binary download you have at the npm install command is due to the package mongodb-memory-server that is used in this generator test template to simulate a mongodb database in memory when you do a npm test. Here is a little tutorial explaining this module on Jest website : https://jestjs.io/docs/en/mongodb
If you don't want to use this package in your tests, you cant just uninstall it from your repo and don't forget to remove the configuration of the module in the test folder at the root of your project (https://github.com/diegohaz/rest/blob/master/generators/app/templates/test/setup.js).