Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.
This repository was archived by the owner on May 17, 2021. It is now read-only.

Can't install with --only=production #27

@jjgonecrypto

Description

@jjgonecrypto

Steps to repro:

  • Clone this repo
  • npm install --only=production
  • npm run compile

Error: Couldn't find preset "es2015" relative to directory

The fix is to include babel-preset-es2015 in dependencies.

This is an issue because when we package Cloud, we want to compile for production only, and compass-serverstats is erroring out due to the prepublish script: https://evergreen.mongodb.com/task/mms_package_rpm_PACKAGE_CLOUD_patch_584bb6ca255365eda8aa94550988b5222d23feee_59d2a363e3c3313610000aa6_17_10_02_20_36_51

@durran @imlucas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions