Skip to content

Example of caching npm packages errantly uses npm ci to install #2955

Closed
@matatk

Description

@matatk

What article on docs.github.com is affected?

https://docs.github.com/en/actions/guides/building-and-testing-nodejs#example-caching-dependencies

What part(s) of the article would you like to see updated?

The example that shows how to cache npm packages includes use of the npm ci command. However npm ci deletes any existing "node_modules/" directory when it starts so I think you should have npm install there instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionsThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content teamecosystemThis issue or pull request should be reviewed by the Docs Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions