nest-cli icon indicating copy to clipboard operation
nest-cli copied to clipboard

nest serve [ WARN ] - Can't execute generate and serve commands until the project is not initialized

Open theunreal opened this issue 8 years ago • 5 comments

I didn't start my project with the nest CLI, but I want to use the CLI in my nest project.

Why do I get the following error?

nest serve [ WARN ] - Can't execute generate and serve commands until the project is not initialized

theunreal avatar Feb 12 '18 11:02 theunreal

Hey @theunreal,

Thanks for feedbacks.

Do you have a nestconfig.json file in your project directory ? If not the configuration can't be loaded and the message is displayed.

I could add this description in order to be more friendly :-)

thomrick avatar Feb 12 '18 13:02 thomrick

Thanks @ThomRick , I don't have this file in my project directory and I have no idea how it should look like. I think documentation for this file can be very helpful.

theunreal avatar Feb 12 '18 14:02 theunreal

You're welcome @theunreal,

You can find the description of this file in the repository README.md file.

Let me know if everything is ok to close the issue ;-)

thomrick avatar Feb 13 '18 07:02 thomrick

Thanks @ThomRick , but I get:

'.' is not recognized as an internal or external command,
operable program or batch file.

I see it reported at https://github.com/nestjs/nest-cli/issues/59

theunreal avatar Feb 13 '18 14:02 theunreal

Thanks a lot for the feedbacks @theunreal !

thomrick avatar Feb 13 '18 14:02 thomrick