question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`np` interactive prompt exits at version selection with no output/error

See original GitHub issue

Description

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)

image

Running np with a version argument provided (e.g. np patch) works successfully with no issues

image

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

  1. npm install --save-dev np
  2. 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/"
},
  1. Authenticate with the Azure feed: see here

  2. Run npx np in terminal

Expected behavior

np interactively prompts for a version input as seen here:

image

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 image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
joelstranskycommented, Jul 7, 2022

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

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.

0reactions
joelstranskycommented, Jul 7, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

`np` interactive prompt exits at version selection with no output/error
When running np without any other arguments, the process abruptly exits after it reaches the version selection stage (right after describing the commits...
Read more >
Running Programs With the mpirun Command
-V, --version. Displays the mpirun version number. If no other options are specified on the same command line, this option also causes mpirun...
Read more >
[dpdk-dev] Not able to start IAVF PMD with dpdk 20.11.3 - Dey, Souvik
... Input/output error EAL: No legacy callbacks, legacy socket not created Interactive-mode selected testpmd: create a new mbuf pool <mb_pool_0>: n=171456, ...
Read more >
Untitled
Ubuntu 20.04 (codenamed Focal Fossa) was released on April 23, 2020. It's a Long-Term Support (LTS) release, meaning that it will receive support...
Read more >
Controller Commands [Cisco Network Convergence System ...
This module provides command line interface (CLI) commands for configuring controllers on the Cisco NCS 5500 Series Router. For detailed information about ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found