init-package-json icon indicating copy to clipboard operation
init-package-json copied to clipboard

Input Redirection / Piping into 'npm init' command not working

Open derekaug opened this issue 10 years ago • 1 comments

I'm trying to write a setup script that automatically runs and fills out the npm init prompts. It appears something is causing npm init to crash when I get to the entry point for the entry point.

Using this sample input file: https://gist.github.com/derekaug/d3c7cfc1fa7e6538de0e

When I run npm init < sample_input or cat sample_input | npm init, npm init crashes when it hits the entry point. See example output here: https://gist.github.com/derekaug/c0c1ace1e828e4c83f27

derekaug avatar Aug 07 '14 19:08 derekaug

I should add I'm on Mac OS X (10.9.4)

derekaug avatar Aug 07 '14 19:08 derekaug