You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if it uses https://github.com/npm/cli.git as an example, then the text in the npm documentation should correspond to the usage in the repository itself.
Steps to reproduce
Execute:
mkdir npm-repo-test
cd npm-repo-test
git init
npm init -y
Location of issue
npm CLI > Configuring npm > package.json > repository
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#repository
Source code location
https://github.com/npm/documentation/blob/main/content/cli/v10/configuring-npm/package-json.mdx#repository
Issue
Referring to the following example from Repository in the documentation:
If a
package.json
is constructed using this example, thennpm pkg fix
changes the protocol fromhttps
togit+https
git+https
is also used by the live version of the repo:https://github.com/npm/cli/blob/latest/package.json#L28-L31 contains:
Expected
The Repository section should provide an example:
npm pkg fix
Steps to reproduce
Execute:
mkdir npm-repo-test cd npm-repo-test git init npm init -y
Integrate the following example code
from Repository into the
package.json
which was just generated, observing proper syntax.Now execute:
and note that the protocol has been changed from
https
togit+https
:Environment
10.8.1
v22.3.0
The text was updated successfully, but these errors were encountered: