ElliotG
ElliotG

Reputation: 1

Angular is undefined and Ivy workspace: <error>

I used MacOS and I tried to install Angular in my terminal by typing$ npm install -g @angular/cli

but it kept failing and the terminal goes like this: enter image description here

so, I tried again by typing $ sudo npm install.... it worked but the terminal says my angular is undefined and the ivy workspace: error (see in the graph)

enter image description here

so what should I do to correctly install angular?

Upvotes: 0

Views: 2776

Answers (1)

Bohdan Forostianyi
Bohdan Forostianyi

Reputation: 121

A little bit late to the party but maybe it could useful for future seekers :)

As pointed in this answer to the similar issue, you should be inside angular project to use this command.

Also, it is is possible that you will have a problem similar to mine: you will be inside the angular project, but nevertheless you will see Ivy Workspace: <error> in the output.

The reason is, that function, that should return Ivy Workspace version returns an error in case if there is no tsconfig.json(or tsconfig.base.json) in you project root folder.

You can required filename (and also if it required, because it seems like this functionality is removed in newer versions) in your node_modules.

Upvotes: 1

Related Questions