Skip to content

npm install fails due to package-lock.json – suggest removal to fix node issues #3430

Closed as not planned
@StrTux

Description

@StrTux

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

Latest from main branch as of April 2025

Web browser and version

Chrome 123.0.6312.107

Operating system

Win 11

Steps to reproduce this

Steps:

  1. Clone the repository: git clone https://github.com/processing/p5.js
  2. Run npm install in the root directory
  3. Observe the node compatibility or package conflict errors due to package-lock.json

Expected:

Project dependencies should install cleanly with npm install.

Actual:

npm install fails due to mismatched or outdated lockfile dependencies, likely caused by package-lock.json being committed.


Suggested Fix:

Consider removing the package-lock.json file from the repository to prevent version conflicts during development setup. This will help contributors install dependencies cleanly, especially when Node versions vary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions