-
Notifications
You must be signed in to change notification settings - Fork 12k
Ng serve fails with Yarn and the -ng4 flag #4787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a duplicate of #4611 Look at #4611 (comment) or #4781 for a workaround. |
Edit: This installs Angular 2 instead of 4 |
Run |
But then again maybe following #4611 (comment) literally works. I'll be trying this later. |
@Ionaru Brilliant! This worked for me. Thanks so much! |
Well I spoke to soon. Meh. @Meligy you are correct. The above change to package.json results in a NG2 install. |
@Meligy you are correct, it does use Angular 2 with that change. My bad. I don't think using |
For those interested, I posted a clean workaround for this problem in #4611 (comment). |
Dupe of #4611 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Lubuntu 16.10
Versions.
@angular/cli: 1.0.0-beta.32.3
node: 7.5.0
os: linux x64
Repro steps. (On a clean VM)
sudo yarn global add @angular/cli
ng set --global packageManager=yarn
ng new MyYarnApp -ng4
cd MyYarnApp
ng serve
orng build
or
sudo yarn global add @angular/cli
ng new MyYarnApp -ng4 --skip-install
cd MyYarnApp
yarn
ng serve
orng build
The log given by the failure.
Mention any other details that might be useful.
This seems to be a combination of installing packages with Yarn, and using Angular 4
The text was updated successfully, but these errors were encountered: