WordPress.org

Make WordPress Core

Opened 2 months ago

Closed 2 months ago

#47916 closed defect (bug) (fixed)

npm install fails if git isn't in the path

Reported by: pento Owned by: pento
Milestone: 5.3 Priority: normal
Severity: normal Version: 5.1
Component: Build/Test Tools Keywords:
Focuses: Cc:
PR Number:

Description

A couple of dependencies refer to git-based locations, which means git needs to be in the path to download them.

To avoid this roadblock, we can refer to the GitHub release packages, instead.

Added in #43055.

Change History (1)

#1 @pento
2 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 45875:

Build Tools: Don't use git for package installs.

While NPM supports installing packages from git locations, this requires git to be in the path, which won't necessarily be true, particularly on Windows.

We can download the release versions for these packages, instead.

Fixes #47916.

Note: See TracTickets for help on using tickets.