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

Created on 30 Mar 2018  Â·  10Comments  Â·  Source: balderdashy/sails

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]
helpful info or workaround inconsistency needs documentation

Most helpful comment

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.

All 10 comments

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 [email protected]

ok, fixed!

@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.

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)

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)

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
.

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

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.

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]

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

svmn picture svmn  Â·  4Comments

edy picture edy  Â·  4Comments

anissen picture anissen  Â·  3Comments

mahfuzur picture mahfuzur  Â·  3Comments

kesavkolla picture kesavkolla  Â·  4Comments