Skip to content

[BUG] errors corrected: Removed invalid "scripts" #6887

@LeviPesin

Description

@LeviPesin

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

I get the following warnings when publishing NPM packages:

npm WARN publish npm auto-corrected some errors in your package.json when publishing.  Please run "npm pkg fix" to address these errors.
npm WARN publish errors corrected:
npm WARN publish Removed invalid "scripts"

The command here was npm publish --ignore-scripts --json /home/runner/work/memory-allocator/memory-allocator/src --access public --provenance.
The problem is... there is no "scripts" field in the package.json.

You can see the problem here.

Expected Behavior

There should be no warnings.

Steps To Reproduce

  1. Run same workflow on same repository (or fork) after a Git tag was pushed.
  2. Observe the error.

Environment

  • npm: 10.1.0
  • Node.js: 20.8.0
  • OS Name: Ubuntu 22.04.3
  • System Model Name: GitHub Actions ubuntu-22.04 runner, version 20231001.1.0
  • npm config: not changing any

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions