Skip to content

The latest version of NPM is not compatible with @google/dscc scripts #253

@daannijkamp

Description

@daannijkamp

I have updated my NPM to the latest version (7.18.1). And now I can't run npm run update_production / dscc-scripts connector update_production anymore.
I get the following error message: Your package.json must have dsccConnector.production entry.
My package.json contains the correct values

"dsccConnector": {
    "production": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "latest": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  },

The reason for this is probably the "reduce lifecycle script environment".
npm_package_* environment variables (like npm_package_dsccConnector_production) are removed from the context of lifecycle scripts.

Solution
Downgrading my NPM

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