2

Hey guys I have a problem. I'm trying to open a project made in Angular 5.2.0 and its Angular/cli version is 1.7.4, my Angular/cli version is 14.0.7... I executed "npm install" and it doesn't give me any error, but when I write "ng version" to see the local version of angular, it gave me an error "Cannot read properties of undefined (reading 'write')", I tried to execute "ng serve --open" and doesn't work neither.

The steps I followed and their results were: 1.- npm install --> ok; 2.- ng version (to check if the Angular's package local version was installed) --> Error = "Cannot read properties of undefined (reading 'write')"; 3.- ng serve --open (to try open the app) --> Error = same as above.

3

2 Answers 2

5

This error message is not helpful at all. It turns out it may be a wrong angular version.

Try downgrading to version 14.0.0.

npm -g i @angular/[email protected]

In my case, I discovered downgrading to any version 14 or below seemed to work, but that may not always be the case.

Sign up to request clarification or add additional context in comments.

1 Comment

This helped me to make progress, thank you
0

Please recreate incrementally with Angular v14.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.