Replacement for npm login
Simulates npm login command behavior, supporting only legacy authentication with a username and password.
Motivation
-
Npm encounters an issue with usernames containing "non-url-safe" characters, displaying a "Name may not contain non-url-safe chars" warning and prompting for a new username. The previously suggested workaround is no longer working. While Yarn avoids this bug, installing it solely for authentication is inconvenient and cumbersome.
-
Eliminate the need to install
npmfor authentication, for example when using alternative runtimes like Bun.
Install
Using uv:
uv tool install npm-login
~/.local/bin/npm-login --help
Using pip:
python3 -m venv .venv
source .venv/bin/activate
# Or with fish:
# source .venv/bin/activate.fish
pip install npm-login
npm-login --help
Release files for npm-login 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| npm_login-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / npm_login-0.1.2-py3-none-any.whl
| Download URL | npm_login-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbee0764d5edebb6dcccddf6598c2a03a81937025a70fbd1b7692d6c1aed50bd
|
|
BLAKE2b-256 checksum How to use checksums |
f92c3e3ec5e3eb25ea06f8ca73f38d6786db6b891722010f4505016316fe1549
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|