I am currently attempting to update my Angular project from version 4 to version 6. After numerous failed attempts to upgrade, I decided to uninstall and reinstall the Angular CLI using 'npm uninstall -g angular-cli' followed by a reinstallation. However, I encountered an error after installing the new Angular CLI.
Error: Cannot find module 'C:\Users\Enoch\Workspaces\Angular IDE 2017 CI\new-front\node_modules\@angular\cli\ember-cli\lib\cli\cli'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\Enoch\Workspaces\Angular IDE 2017 CI\new-front\node_modules\angular-ide\bin\ng:39:19)
...
How can I resolve this error and successfully upgrade my existing project to version 6 without causing further issues? I have been searching for a solution for more than 2 hours now.
This is my current package.json:
{
"name": "new-front",
"version": "0.0.0",
"license": "MIT",
...
}
Realizing that upgrading directly from version 4 to 6 may not be ideal, I tried upgrading from 4 to 5 first which resulted in the error below. Subsequently, I uninstalled and reinstalled the Angular CLI, leading to the problems mentioned above.
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9ef0fbe9b3f8ecf1f0eadeaeb0aeb0ae">[email protected]</a> C:\Users\Enoch\Workspaces\Angular IDE 2017 CI\new-front
+-- @angular/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cbaaa5a2a6aabfa2a4a5b88bfee5f9e5fafb">[email protected]</a> invalid
+-- @angular/...