Skip to content

docs(webassembly): replace npm adduser with npm login - #45568

Merged
Josh-Cena merged 2 commits into
mainfrom
fred-1868-npm-login-instead-of-npm-adduser
Sep 8, 2026
Merged

docs(webassembly): replace npm adduser with npm login#45568
Josh-Cena merged 2 commits into
mainfrom
fred-1868-npm-login-instead-of-npm-adduser

Conversation

@caugner

@caugner caugner commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Description

Update the Rust to Wasm guide to use npm login instead of npm adduser.

Motivation

npm adduser was removed in npm 12, so readers are told to run a command that no longer exists.

Additional details

npm login has been the documented alias for years, so this is a rename rather than a change in instructions. The link now points at npm-login in the current (v11) CLI docs instead of npm-adduser in the v10 docs.

Related issues and pull requests

Part of mdn/fred#1868.

`npm adduser` was removed in npm 12; `npm login` has been the documented
alias for it for years.
@github-actions github-actions Bot added Content:wasm WebAssembly docs size/xs [PR only] 0-5 LoC changed labels Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (3 pages)

External URLs (7)

URL: /en-US/docs/Learn_web_development/Core/Frameworks_libraries/React_getting_started
Title: Getting started with React


URL: /en-US/docs/Learn_web_development/Extensions/Client-side_tools/Package_management
Title: Package management basics


URL: /en-US/docs/WebAssembly/Guides/Rust_to_Wasm
Title: Compiling from Rust to WebAssembly

(comment last updated: 2026-09-08 18:16:44)

@caugner
caugner marked this pull request as ready for review September 8, 2026 17:31
@caugner
caugner requested a review from a team as a code owner September 8, 2026 17:31
@caugner
caugner requested review from hamishwillee and removed request for a team September 8, 2026 17:31
@Josh-Cena
Josh-Cena requested a review from a team as a code owner September 8, 2026 18:14
@Josh-Cena
Josh-Cena requested review from chrisdavidmills and removed request for a team September 8, 2026 18:15
@github-actions github-actions Bot added the Content:Learn Learning area docs (outside of one of the Learn:* subtags) label Sep 8, 2026

@Josh-Cena Josh-Cena left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I switched to versionless URLs because our versioned npm URLs are extremely inconsistent.

@github-actions github-actions Bot added size/s [PR only] 6-50 LoC changed and removed size/xs [PR only] 0-5 LoC changed labels Sep 8, 2026
@Josh-Cena
Josh-Cena merged commit 9e69ea9 into main Sep 8, 2026
11 of 12 checks passed
@Josh-Cena
Josh-Cena deleted the fred-1868-npm-login-instead-of-npm-adduser branch September 8, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Learn Learning area docs (outside of one of the Learn:* subtags) Content:wasm WebAssembly docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants