Skip to content

failed with npm install --production #86

@Colonizator1

Description

@Colonizator1

If you try to include the lib in the package.json file and then run npm i --production during deploy process on the prod server the mongodb will not be installed. Need to move mongodb from devDependencies to the dependencies in the package.json file.
required mongodb -

const { Binary } = require('mongodb');

wrong package.json -
"mongodb": "5.2.0"

Please help me if I missed smth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions