Skip to content

could not read Username for 'https://github.com' #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tiberiuzuld opened this issue Mar 30, 2018 · 5 comments
Closed

could not read Username for 'https://github.com' #36

tiberiuzuld opened this issue Mar 30, 2018 · 5 comments

Comments

@tiberiuzuld
Copy link

tiberiuzuld commented Mar 30, 2018

D:\projects\angular-gridster2>npm run deploy-demo

> [email protected] deploy-demo D:\projects\angular-gridster2
> ngh --dir=demo --no-silent --name='Tiberiu Zuld' --email='[email protected]'

Cloning https://github.com/tiberiuzuld/angular-gridster2.git into node_modules\gh-pages\.cache

Cleaning

Fetching origin

Checking out origin/gh-pages

Removing files

Copying files

Adding all

Committing

Pushing

An error occurred!
 { ProcessError: bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': No error

    at ChildProcess.<anonymous> (D:\projects\angular-gridster2\node_modules\gh-pages\lib\git.js:47:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
  code: 128,
  message: 'bash: /dev/tty: No such device or address\nerror: failed to execute prompt script (exit code 1)\nfatal: could not read Username for
\'https://github.com\': No error\n',
  name: 'ProcessError' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy-demo: `ngh --dir=demo --no-silent --name='Tiberiu Zuld' --email='[email protected]'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] deploy-demo script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!  debug.log

Tried to run this lib to publish my library on gh-pages but was not able to run it on:

OS: Win10
Node: 8.11.0
Npm: 5.8.0

Tried with both the package installed globally and locally.
Tried these commands:

// will run from local package
npm run deploy-demo
// in package.json had "deploy-demo": "ngh --dir=demo"
// will run from global package
ngh --dir=demo --no-silent
ngh --dir=demo --no-silent --name='Tiberiu Zuld' --email='[email protected]'

Running any of the commands I get to same error.

@Programazing
Copy link

I'd suggest reading this first and see if that helps.

@tiberiuzuld
Copy link
Author

Hi @Programazing ,
Followed the steps and created the ssh key. That didn't worked probably because of 2FA.

But when I run with GH_TOKEN as said here worked.

Thanks

@Programazing
Copy link

@tiberiuzuld I use SSH with 2FA just fine.

I'm not sure why it didn't work for you but I'm happy you got it up and running with a token.

@DavidTheProgrammer
Copy link

Thanks @tiberiuzuld The token worked for me too. The SSH key failed

@VajiheHabibi
Copy link

Try using a normal Windows shell such as CMD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants