avoid unstable releases of mongoose in npm / package.json

npm

Solution

Mongoose is not following standard npm practices and so their unstable builds get recognized as stable by npm. Basically they released 3.9 as an unstable version, this is what causes the warning.

My advise is that you don't trust them anymore to follow such conventions and just lock the version in your package.json:

 "mongoose": "3.8"

Problem

How can I avoid installing unstable releases of mongoose with npm? After running `npm update`, I get the following warning in my node app: ``` # !!! MONGOOSE WARNING !!! # # This is an UNSTABLE release of Mongoose. # Unstable releases are available for preview/testing only. # DO NOT run this in production. ``` In my package.json file I have the following entry: ``` "mongoose": "^3.8.8" ```

Original source

Related problems