Topic: Failing at npm start

serbannicusor0 free asked 6 years ago


Hey, i've downloaded the angular project and issued the following commands:   npm i npm start   At npm start i get this as an error:   $ npm start > mdb-angular-free@6.2.5 start C:\Users\xxx\Downloads\mdb-angular-free-6.2.5 > ng serve Could not determine a single project for the 'serve' target. Error: Could not determine a single project for the 'serve' target. at ServeCommand.getProjectNamesByTarget (C:\Users\xxx\Downloads\mdb-angula r-free-6.2.5\node_modules\@angular\cli\models\architect-command.js:175:19) at MergeMapSubscriber._loadWorkspaceAndArchitect.pipe.operators_1.concatMap [as project] (C:\Users\xxx\Downloads\mdb-angular-free-6.2.5\node_modules\@angu lar\cli\models\architect-command.js:50:43) at MergeMapSubscriber._tryNext (C:\Users\xxx\Downloads\mdb-angular-free-6. 2.5\node_modules\rxjs\internal\operators\mergeMap.js:65:27) at MergeMapSubscriber._next (C:\Users\xxx\Downloads\mdb-angular-free-6.2.5 \node_modules\rxjs\internal\operators\mergeMap.js:55:18) at MergeMapSubscriber.Subscriber.next (C:\Users\xxx\Downloads\mdb-angular- free-6.2.5\node_modules\rxjs\internal\Subscriber.js:64:18) at TapSubscriber._next (C:\Users\xxx\Downloads\mdb-angular-free-6.2.5\node _modules\rxjs\internal\operators\tap.js:62:26) at TapSubscriber.Subscriber.next (C:\Users\xxx\Downloads\mdb-angular-free- 6.2.5\node_modules\rxjs\internal\Subscriber.js:64:18) at MergeMapSubscriber.notifyNext (C:\Users\xxx\Downloads\mdb-angular-free- 6.2.5\node_modules\rxjs\internal\operators\mergeMap.js:84:26) at InnerSubscriber._next (C:\Users\xxx\Downloads\mdb-angular-free-6.2.5\no de_modules\rxjs\internal\InnerSubscriber.js:25:21) at InnerSubscriber.Subscriber.next (C:\Users\xxx\Downloads\mdb-angular-fre e-6.2.5\node_modules\rxjs\internal\Subscriber.js:64:18) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! mdb-angular-free@6.2.5 start: `ng serve` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mdb-angular-free@6.2.5 start script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.  
  Debug   0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Users\\xxx\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'start' ] 2 info using npm@6.4.1 3 info using node@v8.11.4 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle mdb-angular-free@6.2.5~prestart: mdb-angular-free@6.2.5 6 info lifecycle mdb-angular-free@6.2.5~start: mdb-angular-free@6.2.5 7 verbose lifecycle mdb-angular-free@6.2.5~start: unsafe-perm in lifecycle true 8 verbose lifecycle mdb-angular-free@6.2.5~start: PATH: 9 verbose lifecycle mdb-angular-free@6.2.5~start: CWD: C:\Users\xxx\Downloads\mdb-angular-free-6.2.5 10 silly lifecycle mdb-angular-free@6.2.5~start: Args: [ '/d /s /c', 'ng serve' ] 11 silly lifecycle mdb-angular-free@6.2.5~start: Returned: code: 1 signal: null 12 info lifecycle mdb-angular-free@6.2.5~start: Failed to exec start script 13 verbose stack Error: mdb-angular-free@6.2.5 start: `ng serve` 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (C:\Users\xxx\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at emitTwo (events.js:126:13) 13 verbose stack at EventEmitter.emit (events.js:214:7) 13 verbose stack at ChildProcess.<anonymous> (C:\Users\xxx\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at emitTwo (events.js:126:13) 13 verbose stack at ChildProcess.emit (events.js:214:7) 13 verbose stack at maybeClose (internal/child_process.js:925:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 14 verbose pkgid mdb-angular-free@6.2.5 15 verbose cwd C:\Users\xxx\Downloads\mdb-angular-free-6.2.5 16 verbose Windows_NT 6.1.7601 17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xxx\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start" 18 verbose node v8.11.4 19 verbose npm v6.4.1 20 error code ELIFECYCLE 21 error errno 1 22 error mdb-angular-free@6.2.5 start: `ng serve` 22 error Exit status 1 23 error Failed at the mdb-angular-free@6.2.5 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

Damian Gemza staff answered 6 years ago


Dear Serbannicusor0, If you're using MDB Angular Free from zip archive, please run the below command:
npm start mdb-angular-free
If you're using MDB Angular Free from our GitHub, please run the below command:
npm start mdb-angular
Your problem is caused by this, that in 6.2.5 version we have added another application to project folder. This additional application is demo app with our every component. So users could easily test our components by running the demo application with the below command:
npm start mdb-demo
Best Regards, Damian

hasoon free commented 6 years ago

Thank you, this solved my issue.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 6.2.3
  • Device: PC
  • Browser: None
  • OS: Win 7 x64
  • Provided sample code: No
  • Provided link: No