balderdashy / sails

Realtime MVC Framework for Node.js
https://sailsjs.com
MIT License
22.85k stars 1.95k forks source link

sails new --no-front-end --fast my-app exits with error #4350

Open trumbitta opened 6 years ago

trumbitta commented 6 years ago

Sails version: 1.0.0 Node version: v9.9.0 NPM version: 5.8.0 DB adapter name: N/A DB adapter version: N/A Operating system: High Sierra


try this:

sails new --no-front-end --fast my-app

and you'll get this (no, I didn't press the ? key nor any other key):

 Choose a template for your new Sails app:
 1. Web App  ·  Extensible project with auth, login, & password recovery
 2. Empty    ·  An empty Sails app, yours to configure
 (type "?" for help, or <CTRL+C> to cancel)
?
  Usage: sails [command]

  Options:

    -v, --version  output the version number
    -h, --help     output usage information

  Commands:

    version
    lift|l [options]
    new [options] [path_to_new_app]
    generate
    upgrade
    console|c [options]
    www
    debug                            (for Node v5 and below)
    inspect                          (for Node v6 and above)
    run
    test
    lint
    deploy
    debug-console|dc
    help [command]
sailsbot commented 6 years ago

Hi @trumbitta! It looks like you may have removed some required elements from the initial comment template, without which I can't verify that this post meets our contribution guidelines. To re-open this issue, please copy the template from here, paste it at the beginning of your initial comment, and follow the instructions in the text. Then post a new comment (e.g. "ok, fixed!") so that I know to go back and check.

Sorry to be a hassle, but following these instructions ensures that we can help you in the best way possible and keep the Sails project running smoothly.

*If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact inquiries@sailsjs.com

trumbitta commented 6 years ago

ok, fixed!

sailsbot commented 6 years ago

@trumbitta Thanks for posting, we'll take a look as soon as possible.


For help with questions about Sails, click here. If you’re interested in hiring @sailsbot and her minions in Austin, click here.

trumbitta commented 6 years ago

You have to create an empty directory, and run:

sails new [options]

This way it will somewhat do what you want (it will still ask you about the kind of app you want, regardless of --no-front-end)

mikermcneil commented 6 years ago

Hey @trumbitta thanks for posting. To skip the app prompt, try --minimal, --traditional, or --caviar.

TODOs:

  1. This needs to be documented in Reference > CLI (needs documentation)
  2. While the example in this issue should still cause the prompt to appear, it definitely shouldn't do weird stuff like show the usage - looks like a regression that I caused when I added the interactive prompt (bug)
trumbitta commented 6 years ago

Thanks, will try these next time :)

On Fri, 30 Mar 2018 at 22:43, Mike McNeil notifications@github.com wrote:

Hey @trumbitta https://github.com/trumbitta thanks for posting. To skip the app prompt, try --minimal, --traditional, or --caviar.

TODOs:

  1. This needs to be documented in Reference > CLI (needs documentation)
  2. While the example in this issue should still cause the prompt to appear, it definitely shouldn't do weird stuff like show the usage - looks like a regression that I caused when I added the interactive prompt ( bug)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/balderdashy/sails/issues/4350#issuecomment-377617105, or mute the thread https://github.com/notifications/unsubscribe-auth/AAcPcYQL6nL414VVEB6OP7h-sXXiSr4mks5tjpdPgaJpZM4TBZty .

embtools commented 5 years ago

sails 1.1.0 running "sails new --fast myproj" per the help prompt is giving me the same results as the initial post

raqem commented 5 years ago

Hi @marcus-pi and @trumbitta, I was able to re-create your issues. But after some playing around I think this looks like an issue with your command order. The name of your project should also go before an other caveats you are adding.

sails new my-project --no-front-end --fast

*Sorry the markdown is not working for me right now.

embtools commented 5 years ago

Hi @marcus-pi and @trumbitta, I was able to re-create your issues. But after some playing around I think this looks like an issue with your command order. The name of your project should also go before an other caveats you are adding.

sails new my-project --no-front-end --fast

*Sorry the markdown is not working for me right now.

That's great, works for me. "sails --help" should probably be updated from it's broken suggestion of: new [options] [path_to_new_app]

raqem commented 5 years ago

@marcus-pi yikes, thanks for pointing that out!