-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
After updating bower to 1.2.1, the bower init command seems to fail. When running the bower init the follow result is shown:
- bower ENOINT Register requires interactive
Here is the Stack Trace when run in verbose mode:
bower ENOINT Register requires interactive
Stack trace:
Error: Register requires interactive
at createError (/usr/local/lib/node_modules/bower/lib/util/createError.js:4:15)
at /usr/local/lib/node_modules/bower/lib/commands/init.js:24:34
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Console trace:
Trace
at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
at Logger.<anonymous> (/usr/local/lib/node_modules/bower/bin/bower:108:18)
at Logger.EventEmitter.emit (events.js:96:17)
at Logger.emit (/usr/local/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
at /usr/local/lib/node_modules/bower/lib/commands/init.js:24:20
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
System info:
Bower version: 1.2.1
Node version: 0.8.19
OS: Darwin 13.0.0 x64
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
satazor commentedon Aug 20, 2013
Hey @jinmatt!
npm install bower -g
) or are you actually have it cloned locally andnpm link
?In case you have a linked copy of bower in
2.
you have to donpm install
inside the cloned bower directory.The interactive flag is being set here: https://github.com/bower/bower/blob/master/lib/config.js#L11 you can debug that with a
console.log(config)
before the if statement and one afterwards, includingprocess.title
andisatty
.Note that you can enable it anyway with
--config.interactive
, but worth investigating why your terminal is not a reporting itself as a tty.jinmatt commentedon Aug 20, 2013
@satazor
I'm using oh-my-zsh. I have installed bower using npm(
npm install -g bower
), and updated bower lately usingnpm update -g bower
satazor commentedon Aug 20, 2013
@jinmatt I've tried oh-my-zsh and it works. Can you try to uninstall bower and install it again?
jinmatt commentedon Aug 20, 2013
Tried that, but getting the same result again.
jinmatt commentedon Aug 20, 2013
Uninstalled bower 1.2.1 and installed 0.10.0, and now bower init is working.
satazor commentedon Aug 20, 2013
@jinmatt the only difference I'm having is that I was running on
MacOSx
. Anyway, I will remove that check on theinit
command and release a new version today. I advise against downgrading to0.10.0
. Bower<1.0.0
has a lot of issues.satazor commentedon Aug 20, 2013
Oops didn't wanted to close.
@jinmatt anyway, even if I remove that check, you will be running bower with
interactive
set to false, meaning it won't prompt you questions whenever necessary.Can you please do the following:
What does it output?
satazor commentedon Aug 21, 2013
Bump.
jinmatt commentedon Aug 21, 2013
@satazor
the output I get:
jinmatt commentedon Aug 21, 2013
@satazor btw I'm too running on a Mac OS X. But on 10.9 Preview 5, do you think this might be a cause of this issue?
jinmatt commentedon Aug 21, 2013
Updated to 1.2.2 now. Now when I run
bower init
I get this Additional error detailsSo I tried running
bower init --config.interactive
and the interactive prompt is workingsatazor commentedon Aug 21, 2013
Yes I've improved the error message. Still I would like to know why this is happening to you, since it can be affecting other users. Can you please do the following:
npm link
inside the cloned folder (with sudo)console.log(config)
here https://github.com/bower/bower/blob/master/lib/config.js#L5bower -v
jinmatt commentedon Aug 21, 2013
Done:
30 remaining items