Skip to content

Unable to successfully run npm ci on a local code environment #37809

@phonokoye

Description

@phonokoye

Code of Conduct

What article on docs.github.com is affected?

I am trying to work with the contents of the documentation here; I want to run

https://docs.github.com/en/contributing/setting-up-your-environment-to-work-on-github-docs/creating-a-local-environment#starting-a-local-github-docs-server

I get the following error after using npm ci
2025-04-27T14_39_13_438Z-debug-0.log

I followed the tutorial here and from that I thought that I might need to change the code below in package.json

"overrides": {
    "esbuild": "^0.25"
  }

to

"overrides": {
    "esbuild": "^0.25.3"
  }

Since that is the latest version of esbuild and since it was the last module I saw in the logs before the error. I got more errors that required me to do something in npm. I do not know much about how the command works and I am stuck.

What changes are you suggesting?

I know only enough about npm and node.js to run commands and barely enough to debug errors. I am looking for guidance on how to create a run the latest commit of the github docs locally. Additionally (If this is possible), I would prefer to make a static version of the docs than running a server, and I would appreciate any reference to more information on how to do that.

Additional information

  1. I used git clone https://github.com/github/docs --depth=1 instead of git clone https://github.com/github/docs in the instructions given here

  2. I am running Node.js v22.15.0 and npm 10.9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamtriageDo not begin working on this issue until triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions