Skip to content

Build npm docs #30719

Description

@hinell
  • Version: v13.2.0
  • Platform: Windows 10 x64
  • Subsystem:

Issue

Running npm help install throws an error:

Windows cannot find
'E:\Programs\NodeJS\node_modules\npm\docs\public\cli-commands\npm-install\index.html'. 

The error is caused by non-existing public/ folder in default NodeJS path installation: NodeJS/node_modules/npm/docs/public , which contains local npm documentation.

Addressing

  1. cd to deps/npm/docs folder
  2. build documentation by using default npm scripts

Workaround

$ npm i -g npm

Background

  • NPM documentation was recently updated by v6.13.0 version to use Gatsby framework, which requires users to generate static documentation from * .md files before it can be consumed
  • Newly updated npm was incorporated into NodeJS by v13.2.0 (deps: update npm to 6.13.0 #30271) version

Misc

CC @ruyadorno

Why not to convert the deps/npm to a git submodule?

Metadata

Metadata

Assignees

No one assigned

    Labels

    npmIssues and PRs related to the npm client dependency or the npm registry.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions