`np` interactive prompt exits at version selection with no output/error
See original GitHub issueDescription
When running np
without any other arguments, the process abruptly exits after it reaches the version selection stage (right after asking to continue even though there are no commits)
Running np
with a version argument provided (e.g. np patch
) works successfully with no issues
I have a hunch the issue is related to using Azure as a custom registry, because using the regular npm registry prompts for a version input as expected
Sorry, I cannot provide a reproduction repository because I am working with sensitive company registry and code, and don’t have the access to set up a separate Azure registry
Steps to reproduce
npm install --save-dev np
- Configure an Azure feed as the npm registry e.g.
// .npmrc
registry=https://pkgs.dev.azure.com/<organisation>/_packaging/<package name>/npm/registry/
always-auth=true
// package.json
...
"publishConfig": {
"registry": "https://pkgs.dev.azure.com/<organisation>/_packaging/<package name>/npm/registry/"
},
-
Authenticate with the Azure feed: see here
-
Run
npx np
in terminal
Expected behavior
np
interactively prompts for a version input as seen here:
Environment
np - 7.4.0 (note: downgrading to version 5.0.0, does not have this same issue - but has other issues related to 2fa)
Node.js - 12.21.0
npm - 6.14.11
Git - 2.30.0.windows.1
OS - Windows 10 Pro
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Turns out np passes the non-whitespace characters to
npm version
later on in the bump step which causes a failure. Seems I’m switching to semantic release as well.Thanks for starting this thread as I’m on azure as well. It seems
np
followed by any non-whitespace is what causes the interactive UI to show up. That seems like an acceptable hurdle to just alter the release script command in package.json