+ 4

nest generate route cars

I have navigated to C:\users\[username]\cars route that was created when I installed NestJS. When I run 'nest run start' I get the following messages, but doesn't return to a prompt after the last one. Just a blinking cursor. [Nest] 24956 - 09/10/2020, 9:28:57 AM [NestFactory] Starting Nest application... [Nest] 24956 - 09/10/2020, 9:28:57 AM [InstanceLoader] AppModule dependencies initialized +10ms [Nest] 24956 - 09/10/2020, 9:28:57 AM [RoutesResolver] AppController {}: +4ms [Nest] 24956 - 09/10/2020, 9:28:57 AM [RouterExplorer] Mapped {, GET} route +2ms [Nest] 24956 - 09/10/2020, 9:28:57 AM [NestApplication] Nest application successfully started +2ms If I open another Terminal Window and try and run 'nest generate route cars' I get the following error: Invalid schematic "route". Please, ensure that "route" exists in this collection.

10th Sep 2020, 2:35 PM
Brad
8 Answers
+ 19
The correct command is nest generate controller cars
27th Nov 2020, 9:52 AM
Saidu Waziri
Saidu Waziri - avatar
0
Thank you @Saidu Waziri!
22nd May 2021, 4:00 AM
Matthew Lowrey
Matthew Lowrey - avatar
0
thanks it worked
2nd Jun 2021, 6:33 AM
Kopano Kaas Nielsen
Kopano Kaas Nielsen - avatar
0
Thanks Saidu Waziri.
10th Oct 2021, 10:50 PM
Anthony Mogotlane
0
Thanks Saidu Waziri
15th Nov 2021, 11:15 AM
Nidheesh S Menon
Nidheesh S Menon - avatar
0
Thanks Saidu Waziri its working now I can continue learning Mean stack!!
15th Mar 2022, 5:08 PM
Anmol Sinha
Anmol Sinha - avatar
0
Thanks Saidu Waziri its working now
18th Jun 2022, 9:15 AM
Raviraj Prajapati
Raviraj Prajapati - avatar
0
It was helpful. Thanks
27th Nov 2022, 8:07 AM
Shalom Ali