Error: nodejs nestjs 'npm run start' how do i solve this? - node.js

I keep getting this error when i run npm run start at terminal. This is a nestJS default project.
Found 41 error(s).
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! backend#0.0.1 start: `nest start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the backend#0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\eduar\AppData\Roaming\npm-cache\_logs\2020-12-25T01_25_45_350Z-debug.log
PS C:\Users\eduar\OneDrive\Escritorio\Fullstack\backend>
Also I get duplicate identifier errors, but I can post it because of character limits.
This is the debug:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm#6.14.8
3 info using node#v14.14.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle backend#0.0.1~prestart: backend#0.0.1
6 info lifecycle backend#0.0.1~start: backend#0.0.1
7 verbose lifecycle backend#0.0.1~start: unsafe-perm in lifecycle true
8 verbose lifecycle backend#0.0.1~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\eduar\OneDrive\Escritorio\Fullstack\backend\node_modules\.bin;D:\VMware\bin\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\nodejs\;D:\Git\cmd;C:\Users\eduar\AppData\Local\Programs\Python\Python37-32\Scripts\;C:\Users\eduar\AppData\Local\Programs\Python\Python37-32\;C:\Users\eduar\AppData\Local\Microsoft\WindowsApps;C:\Users\eduar\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\eduar\AppData\Local\atom\bin;C:\MinGW\bin;C:\Users\eduar\OneDrive\Escritorio\flutter\bin;C:\Users\eduar\AppData\Roaming\npm;C:\Users\eduar\AppData\Local\GitHubDesktop\bin
9 verbose lifecycle backend#0.0.1~start: CWD: C:\Users\eduar\OneDrive\Escritorio\Fullstack\backend
10 silly lifecycle backend#0.0.1~start: Args: [ '/d /s /c', 'nest start' ]
11 silly lifecycle backend#0.0.1~start: Returned: code: 1 signal: null
12 info lifecycle backend#0.0.1~start: Failed to exec start script
13 verbose stack Error: backend#0.0.1 start: `nest start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1048:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid backend#0.0.1
15 verbose cwd C:\Users\eduar\OneDrive\Escritorio\Fullstack\backend
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start"
18 verbose node v14.14.0
19 verbose npm v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error backend#0.0.1 start: `nest start`
22 error Exit status 1
23 error Failed at the backend#0.0.1 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
I already try to reinstall npm packages and reinstall nestjs. As i said at the first, this is default project of nestjs and node

It seems you have no #nestjs/cli installed globally.
npm i -g #nestjs/cli

Related

NodeJS semi-regular occurance of react-scripts error during npm start

new to NodeJS and still feeling my way around it. Inherited a project which contains react-scripts. After installing some missing dependencies for the project, I was left with one remaining issue with react-scripts when running
npm start
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myapp#1.0.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myapp#1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! mydir\2022-08-20T21_23_08_337Z-debug.log
Log file:
> 0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm#6.14.16
3 info using node#v12.22.12
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle myapp#1.0.0~prestart: myapp#1.0.0
6 info lifecycle myapp#1.0.0~start: myapp#1.0.0
7 verbose lifecycle myapp#1.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle myapp#1.0.0~start: PATH: C:\Users\me\AppData\Roaming\nvm\v12.22.12\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;mydir\node_modules\.bin;C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\bin;C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Users\me\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Users\me\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\me\AppData\Local\Programs\Python\Python310\;C:\Users\me\AppData\Local\Microsoft\WindowsApps;C:\Users\me
\.dotnet\tools;C:\Program Files\Azure Data Studio\bin;C:\Users\me\AppData\Roaming\npm;C:\Users\me\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\me\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Windows\System32;
9 verbose lifecycle myapp#1.0.0~start: CWD: mydir
10 silly lifecycle myapp#1.0.0~start: Args: [ '/d /s /c', 'react-scripts start' ]
11 silly lifecycle myapp#1.0.0~start: Returned: code: 1 signal: null
12 info lifecycle myapp#1.0.0~start: Failed to exec start script
13 verbose stack Error: myapp#1.0.0 start: `react-scripts start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Users\me\AppData\Roaming\nvm\v12.22.12\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:314:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Users\me\AppData\Roaming\nvm\v12.22.12\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:314:20)
13 verbose stack at maybeClose (internal/child_process.js:1022:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid myapp#1.0.0
15 verbose cwd mydir\myapp
16 verbose Windows_NT 10.0.22000
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v12.22.12
19 verbose npm v6.14.16
20 error code ELIFECYCLE
21 error errno 1
22 error myapp#1.0.0 start: `react-scripts start`
22 error Exit status 1
23 error Failed at the myapp#1.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
After a few changes like some environment variable additions I was able to resolve it with a reboot. However, the issue continues to re-occur and I can't find out a consistent method to get past this and/or what the error actually means.
The fact that I've been able to run it fine multiple times (without any code changes) is making it difficult to put my finger on.
Any ideas?

npm elifecycle err after using npm run start

Well after I deployed my app to Heroku I changed some of my code on my local machine.
After I tried to npm run start script I got this ERR for the first time.
In the log, you can see that the ERR is not from some specific package.
I tried to delete the node_modules folder and the package-JSON.lock (manually) and run:
npm cache clean --force
delete the folder of node_modules and package-JSON.lock manually
I didn't manage to use rm -rf node_modules package-lock.json
npm install
on npm install, I had one error so I used npm install --force
solutions I tried:
How to solve npm error "npm ERR! code ELIFECYCLE"
What does the ELIFECYCLE Node.js error mean?
my log file:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm#6.14.6
3 info using node#v12.18.3
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle natours#1.0.0~prestart: natours#1.0.0
6 info lifecycle natours#1.0.0~start: natours#1.0.0
7 verbose lifecycle natours#1.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle natours#1.0.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Projects\natours-project\node_modules\.bin;C:\Python38\Scripts\;C:\Python38\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Users\Asus\AppData\Local\Microsoft\WindowsApps;;C:\Users\Asus\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Asus\AppData\Roaming\npm;C:\Program Files\heroku\bin
9 verbose lifecycle natours#1.0.0~start: CWD: C:\Projects\natours-project
10 silly lifecycle natours#1.0.0~start: Args: [ '/d /s /c', 'node server.js' ]
11 silly lifecycle natours#1.0.0~start: Returned: code: 1 signal: null
12 info lifecycle natours#1.0.0~start: Failed to exec start script
13 verbose stack Error: natours#1.0.0 start: `node server.js`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid natours#1.0.0
15 verbose cwd C:\Projects\natours-project
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start"
18 verbose node v12.18.3
19 verbose npm v6.14.6
20 error code ELIFECYCLE
21 error errno 1
22 error natours#1.0.0 start: `node server.js`
22 error Exit status 1
23 error Failed at the natours#1.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
My code at GitHub: https://github.com/adids1221/natours-project

Why I got this error: npm ERR! code ELIFECYCLE

I'm new at programming and also in React. I'm trying to start my project, but it doesn't start.
Here is the error:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client#0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Home\AppData\Roaming\npm-cache\_logs\2020-08-10T04_38_38_989Z-debug.log
Here is log file:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm#6.13.4
3 info using node#v12.16.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle client#0.1.0~prestart: client#0.1.0
6 info lifecycle client#0.1.0~start: client#0.1.0
7 verbose lifecycle client#0.1.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle client#0.1.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\ReactProjects\restaurant-app\client\node_modules\.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\bin\Intel64;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\SysWOW64;C:\Program Files\wget;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Users\Home\AppData\Local\Microsoft\WindowsApps;C:\Users\Home\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Home\AppData\Roaming\npm;C:\Users\Home\AppData\Local\GitHubDesktop\bin
9 verbose lifecycle client#0.1.0~start: CWD: D:\ReactProjects\restaurant-app\client
10 silly lifecycle client#0.1.0~start: Args: [ '/d /s /c', 'react-scripts start' ]
11 silly lifecycle client#0.1.0~start: Returned: code: 1 signal: null
12 info lifecycle client#0.1.0~start: Failed to exec start script
13 verbose stack Error: client#0.1.0 start: `react-scripts start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:321:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:321:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid client#0.1.0
15 verbose cwd D:\ReactProjects\restaurant-app\client
16 verbose Windows_NT 10.0.17134
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v12.16.0
19 verbose npm v6.13.4
20 error code ELIFECYCLE
21 error errno 1
22 error client#0.1.0 start: `react-scripts start`
22 error Exit status 1
23 error Failed at the client#0.1.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
P.S. I tried out to clean cache, delete node_modules and package-lock.json and reinstall them, but it didn't fix my problem.
Thanks in advance
I fixed it. Sorry for my stupidity. I just moved my "public" folder into components.
Moved up into root folder and project launched.
maybe, you can try to remove node_modules and reinstall all them with the command 'npm install' or 'yarn'
Use the CDN links of Bootstrap .
Get started with the docs
I did have same issues but I had to delete package-lock.json
And node_modules folder and Problem gone immediately
But remember to check if cache is cleaned or clean it by forcing it
Like this
npm cache clean --force
Again run npm install command so as to re-install properly deleted modules
Happy coding #Ykee

Getting Error while running the React App

This is the log of the error that I am getting while running "npm start" command after creating react app using npx create-react-app my-app.
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm#6.13.4
3 info using node#v12.16.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle my-app#0.1.0~prestart: my-app#0.1.0
6 info lifecycle my-app#0.1.0~start: my-app#0.1.0
7 verbose lifecycle my-app#0.1.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle my-app#0.1.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\mechi\my-app\node_modules\.bin;C:\Users\mechi\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Java\jdk1.8.0_101\bin;C:\Program Files (x86)\Java\jdk1.8.0_101\lib;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\mechi\AppData\Local\Microsoft\WindowsApps;C:\Users\mechi\AppData\Local\atom\bin;C:\Users\mechi\AppData\Local\hyper\app-3.0.2\resources\bin;C:\Program Files\heroku\bin;C:\Users\mechi\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
9 verbose lifecycle my-app#0.1.0~start: CWD: C:\Users\mechi\my-app
10 silly lifecycle my-app#0.1.0~start: Args: [ '/d /s /c', 'react-scripts start' ]
11 silly lifecycle my-app#0.1.0~start: Returned: code: 1 signal: null
12 info lifecycle my-app#0.1.0~start: Failed to exec start script
13 verbose stack Error: my-app#0.1.0 start: `react-scripts start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:311:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:311:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid my-app#0.1.0
15 verbose cwd C:\Users\mechi\my-app
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v12.16.1
19 verbose npm v6.13.4
20 error code ELIFECYCLE
21 error errno 1
22 error my-app#0.1.0 start: `react-scripts start`
22 error Exit status 1
23 error Failed at the my-app#0.1.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Please anyone can give the solution of this problem ? I had tried all the methods that are posted here - uninstalling the package-lock.json, node_modules and reinstalling npm.
Did you try this?
remove node_modules and lock files
edit package.json so the new version of react-scripts is "2.1.8"
yarn install / npm install
cd your-app
yarn start / npm start

no open ports available when running serve for vue cli is what im requesting

Could somebody help me to solve a problem with the very start of my VUE cli project , cause i have tried to run serve it in order to see the App.vue but this error shows up:
vue-cli-service serve
INFO Starting development server...
ERROR Error: No open ports available
Error: No open ports available
at Server.onError (C:\Users\kikit\bookstoreapp\node_modules\portfinder\lib\portfinder.js:58:23)
at Object.onceWrapper (events.js:300:26)
at Server.emit (events.js:210:5)
at emitErrorNT (net.js:1327:8)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bookstoreapp#0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bookstoreapp#0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kikit\AppData\Roaming\npm-cache\_logs\2019-10-29T12_40_18_509Z-debug.log
PS C:\Users\kikit\bookstoreapp>
and the log report would be
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'serve'
1 verbose cli ]
2 info using npm#6.12.0
3 info using node#v12.13.0
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle bookstoreapp#0.1.0~preserve: bookstoreapp#0.1.0
6 info lifecycle bookstoreapp#0.1.0~serve: bookstoreapp#0.1.0
7 verbose lifecycle bookstoreapp#0.1.0~serve: unsafe-perm in lifecycle true
8 verbose lifecycle bookstoreapp#0.1.0~serve: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\kikit\bookstoreapp\node_modules\.bin;C:\Program Files\Java\jdk1.8.0_221\bin;C:\Program Files (x86)\Brackets\command;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.2\bin;;C:\Users\kikit\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\kikit\AppData\Roaming\npm
9 verbose lifecycle bookstoreapp#0.1.0~serve: CWD: C:\Users\kikit\bookstoreapp
10 silly lifecycle bookstoreapp#0.1.0~serve: Args: [ '/d /s /c', 'vue-cli-service serve' ]
11 silly lifecycle bookstoreapp#0.1.0~serve: Returned: code: 1 signal: null
12 info lifecycle bookstoreapp#0.1.0~serve: Failed to exec serve script
13 verbose stack Error: bookstoreapp#0.1.0 serve: `vue-cli-service serve`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:210:5)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:210:5)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid bookstoreapp#0.1.0
15 verbose cwd C:\Users\kikit\bookstoreapp
16 verbose Windows_NT 10.0.18362
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve"
18 verbose node v12.13.0
19 verbose npm v6.12.0
20 error code ELIFECYCLE
21 error errno 1
22 error bookstoreapp#0.1.0 serve: `vue-cli-service serve`
22 error Exit status 1
23 error Failed at the bookstoreapp#0.1.0 serve script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Which might be the error ?..... thanks

Resources