Closed alterx closed 6 years ago
Having same issue, only on Windows 10 PC. Everything works fine on MacOS
That's weird, I'm getting these errors on my Mac
I can confirm this error. Happens for me on both: Windows 10 and MacOS.
@vsavkin can you please give us a hint how to solve this?
Hey guys, I tried removing the @angular/cli
and re-installing it using yarn
and it seems to fix the issue. Maybe just change the statement here:
Yarn does a better job at recognizing and dealing with multiple peer dependencies on globally installed packages, thus is recommended (but not a hard requirement)
to reflect that yarn is a hard requirement?
@rmacteague @domkrel did you try what @alterx did? Have any luck getting it to work?
Yarn is a hard requirement for new workspace creation when using ng new
to create a new Nx Workspace, but the rest of the Nx schematics can be used with npm...thus why we went with the "not a hard requirement". But that being said, we will update the docs to explain this scenario more clearly.
I can confirm that yarn fixed the problem.
Docs have been updated to explain the need for yarn for generating new workspaces only. Thx again for the feedback!
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
It doesn't matter if I use the script or a globally installed
@angular/cli
I just keep getting this error:Naturally I tried to install
@angular-devkit/schematics
but then the error changed to this one:I'm not familiar enough with schematics and
@schematics/angular/strings
isn't a module (or, at least, I can't install it through yarn/npm. What's happening here? I tried both the current and next scripts, and installing nx globally and everything is failing.