Skip to content
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

Angular 6.0.0-beta7 can't be installed #125

Closed
mashbrno opened this issue Apr 6, 2018 · 8 comments
Closed

Angular 6.0.0-beta7 can't be installed #125

mashbrno opened this issue Apr 6, 2018 · 8 comments

Comments

@mashbrno
Copy link

mashbrno commented Apr 6, 2018

During npm install I have problem with angular 6.0.0-beta7 because it references github:webpack-contrib/html-webpack-plugin which doesn't exist anymore. I tried to update to 6.0.0-rc.2, but got another issue with Local workspace file ('angular.json') could not be found.

Can you please help me?

@bretonio
Copy link

bretonio commented Apr 6, 2018

I have the same difficulty since yesterday. I am prompted for my .ssh key and then,


npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/webpack-contrib/html-webpack-plugin.git
npm ERR! 
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! 
npm ERR! exited with error code: 128

I checked for my existing SSH and studied the tutorial on generating and adding these.

Thanks for your kind attention.

@JanOschii
Copy link

Seems to be a bug with angular/core. I have had the same problem and the easy way I found was downgrading all angular dependencies to "Latest" (5.2.9 mostly). Now everything is fine again.
If you use Visual Code, then you should take a look to the "Version Lens" extension for VS.
Its a live saver for jobs like this.

@aetherity
Copy link

Same issue.

@GuateDevIO
Copy link

Had the same issue and after an hour of investigation, it seems that the issue is found here:
See text below headline: "If you use HtmlWebpackPlugin“ on https://medium.com/webpack/webpack-4-released-today-6cdb994702d4

To fix this I replace the blow:

"html-webpack-plugin": "github:webpack-contrib/html-webpack-plugin#a8a8c2b6ea496c257fd6f501db3a06a51fa03e1e",

Replace it with this:
"html-webpack-plugin": "3.2.0",

"version": "github:webpack-contrib/html-webpack-plugin#a8a8c2b6ea496c257fd6f501db3a06a51fa03e1e",

Replace it with this:
"version": "3.2.0",

Hope it helps.

@tomastrajan
Copy link
Owner

Hey! Thank you very much for debugging this issue! I hope that this will all go away soon with releases of stable 6.0.0 of Angular, Material, RxJS and CLI. Until than the workaround with the html-webpack-plugin version seem to be the way to go!

@aetherity
Copy link

This resolved the install issue. Thanks!

@tomastrajan
Copy link
Owner

Started working on migration to 6.0.0-rc versions of Angular, CLI, Material, NgRx and RxJS. It seems to mostly work in dev mode but I still have issues with running tests and lazy loaded ngrx modules so it might take a while or even until real 6.0.0 until all things play nicely together.

@tomastrajan
Copy link
Owner

Feel free to check this huge commit which contains migration to the new Angular CLI project configuration and layout.

Also version of starter project was aligned with Angular and others so starter is currently having 6.0.0-rc.1.

Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants