Can anyone assist me in resolving why I am unable to start my project after fixing 3 high vulnerabilities? I ran npm audit
to identify the vulnerabilities and then used
npm install --save-dev @angular/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5e3d32371e6f6b706c706f">[email protected]</a>
to address them. However, when I try ng serve
, nothing happens. So, I attempted to run npm start
instead and encountered the following errors:
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d1b0b3b291e1ffe1ffe1">[email protected]</a> start: `ng serve`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f5949796b5c5dbc5dbc5">[email protected]</a> 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\user\AppData\Roaming\npm-cache\_logs\2023-03-07T17_32_14_773Z-debug.log
This information is available in the log.
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 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="711f011c31475f40455f4046">[email protected]</a>
3 info using <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2b45444f4e6b5d1a1f05191b051a">[email protected]</a>
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6f0e0d0c2f5f415f415f">[email protected]</a>~prestart: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b6d7d4d5f68698869886">[email protected]</a>
...
... (remaining content omitted for brevity)
...
19 verbose npm v6.14.17
20 error code ELIFECYCLE
21 error errno 3
22 error <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a9c8cbcae99987998799">[email protected]</a> start: `ng serve`
22 error Exit status 3
23 error Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4b2a29280b7b657b657b">[email protected]</a> start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 3, true ]
Shown below is the current structure of package.json:
{
"name": "abc",
"version": "0.0.0",
"scripts": {
...
... (scripts content omitted for brevity)
...
},
"private": true,
"dependencies": {
...
... (dependencies list omitted for brevity)
...
},
"devDependencies": {
...
... (devDependencies list omitted for brevity)
...
}
}
I have attempted deleting node_modules and package-lock.json followed by running npm install
but the issue persists.