Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm 3.10.1 "init" inputs are obstructed with new progress bar #13105

Closed
nomaed opened this issue Jun 19, 2016 · 2 comments
Closed

npm 3.10.1 "init" inputs are obstructed with new progress bar #13105

nomaed opened this issue Jun 19, 2016 · 2 comments
Labels

Comments

@nomaed
Copy link

nomaed commented Jun 19, 2016

When trying to init a new package.json using npm init with npm version 3.10.1, the inputs are obstructed with the new progress bar.

╭─nomaed:~/tmp ⌚ 23:03:05
╰▶ uname -sr
Darwin 15.5.0
╭─nomaed:~/tmp ⌚ 22:47:30
╰▶ node -v
v6.2.2
╭─nomaed:~/tmp ⌚ 23:01:06
╰▶ npm -v
3.10.1
╭─nomaed:~/tmp ⌚ 23:01:07
╰▶ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help json` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg> --save` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
⸨░░░░░░░░░░░░░░░░░░⸩ ⠼ : info using node@v6.2.2
⸨░░░░░░░░░░░░░░░░░░⸩ ⠼ : info using node@v6.2.2
⸨░░░░░░░░░░░░░░░░░░⸩ ⠼ : info using node@v6.2.2
⸨░░░░░░░░░░░░░░░░░░⸩ ⠼ : info using node@v6.2.2
⸨░░░░░░░░░░░░░░░░░░⸩ ⠼ : info using node@v6.2.2
⸨░░░░░░░░░░░░░░░░░░⸩ ⠼ : info using node@v6.2.2
About to write to /Users/nomaed/tmp/package.json:

{
  "name": "tmp",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Boris Aranovich <nomaed@gmail.com> (https://github.com/nomaed)",
  "license": "ISC",
  "description": ""
}


⸨░░░░░░░░░░░░░░░░░░⸩ ⠼ : info using node@v6.2.2
╭─nomaed:~/tmp ⌚ 23:01:19
╰▶
@ffxsam
Copy link

ffxsam commented Jun 20, 2016

This goes for anything with a prompt, including npm login.

@iarna
Copy link
Contributor

iarna commented Jun 20, 2016

We'll be pushing out a quick release for this today.

iarna added a commit that referenced this issue Jun 20, 2016
As `adduser` is interactive it's important that we disable the progress bar
while it runs.

PR-URL: #13117
Credit: @iarna
Reviewed-By: @othiym23
Fixes: #13105
@iarna iarna closed this as completed in 7779e9f Jun 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants