init-package-json
init-package-json copied to clipboard
Input Redirection / Piping into 'npm init' command not working
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
I should add I'm on Mac OS X (10.9.4)