angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.12k stars 1.24k forks source link

Unable to successfully install 4.2.2 or alpha version #2614

Open akash23 opened 7 years ago

akash23 commented 7 years ago
Item Version
generator-angular-fullstack 4.2.2 or alpha
Node 6.11.1
npm 5.3.0
Operating System OS X 10.12
etc etc
Item Answer
Transpiler TypeScript
Markup HTML
CSS SCSS
Router ngRoute
Client Tests Mocha
DB MongoDB
Auth Y
etc etc

I have been trying to install either of the two version but none is being installed properly. I am following the proper steps but facing these issues: 1) While the dependencies are getting installed, following errors appear: node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v57-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for node-zopfli@1.4.0 and node@8.2.1 (node-v57 ABI) (falling back to source compile with node-gyp)

and finally the following in the end:

`npm WARN angular2-universal@2.1.0-rc.1 requires a peer of rxjs@~5.0.0-beta.12 but none was installed.`

npm WARN angular2-universal@2.1.0-rc.1 requires a peer of zone.js@~0.6.21 but none was installed. npm WARN isparta-instrumenter-loader@1.0.1 requires a peer of webpack@^1.5.3 but none was installed. npm WARN The package babel-core is included as both a dev and production dependency. npm WARN The package babel-plugin-transform-runtime is included as both a dev and production dependency. npm WARN The package babel-preset-es2015 is included as both a dev and production dependency.

After this when I run gulp serve I am getting the following output: generator-angular-fullstack-errorList.txt

I understand that a few of the dependencies declared in the current version has been eithre deprecated or merged with the release of Angular 4. I tried removing the rootDir declaration in tsconfig.json which solves the e2e not being declared in the rootDir issue. I also tried to include the newer version of uirouter but there seems to be a lot of errors and I have started thinking that I might have done some mistake during installation.

stherrienaspnet commented 7 years ago

Hello akash23, we are actively working on alpha so you should really use 4.2.2. I made a branch recently to fix many errors related to typescript in alpha. The branch is named 'fix-typescript-errors' and the fix for the rootDir is included. "rootDir": "./", For 4.2.2 issue I will consult Andrew...

akash23 commented 7 years ago

Thanks for your guidance @stherrienaspnet . Any tentative date to release an updated version?

stherrienaspnet commented 7 years ago

Could you try again with generator 4.2.2 using your previous selection and choose css this time to see your output now.

Le 2 août 2017 1:23 AM, "akash23" notifications@github.com a écrit :

Thanks for your guidance @stherrienaspnet https://github.com/stherrienaspnet . Any tentative date to release an updated version?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/angular-fullstack/generator-angular-fullstack/issues/2614#issuecomment-319570664, or mute the thread https://github.com/notifications/unsubscribe-auth/AF19ccWcfW3CnniMHos0rtb_JOXR5VKiks5sUAeygaJpZM4Op7gz .

akash23 commented 7 years ago

@stherrienaspnet I am getting the same npm install errors following file contains the output of gulp serve (I changed the rootDir as you mentioned earlier ).

generator-fullstack-errors-css.txt

So I tried again without adding Authentication boilerplates this time and got the following errors:

WARNING! this npm package "ui-router-ng2" has moved to "@uirouter/angular". Please update your package.json along with the universal and repeated dependencies And the following errors on gulp serve:

generator-angular-errors-withoutAuthentication.txt

stherrienaspnet commented 7 years ago

Hello the fix was for alpha only and many other issues where fixed in my branch and some work is still remaining to make feature work again.

Le 2 août 2017 11:45 AM, "akash23" notifications@github.com a écrit :

@stherrienaspnet https://github.com/stherrienaspnet I am getting the same npm install errors following file contains the output of gulp serve (I changed the rootDir as you mentioned earlier ).

generator-fullstack-errors-css.txt https://github.com/angular-fullstack/generator-angular-fullstack/files/1194454/generator-fullstack-errors-css.txt

So I tried again without adding Authentication boilerplates this time and got the following errors:

WARNING! this npm package "ui-router-ng2" has moved to "@uirouter/angular". Please update your package.json along with the universal and repeated dependencies And the following errors on gulp serve:

generator-angular-errors-withoutAuthentication.txt https://github.com/angular-fullstack/generator-angular-fullstack/files/1194459/generator-angular-errors-withoutAuthentication.txt

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/angular-fullstack/generator-angular-fullstack/issues/2614#issuecomment-319712731, or mute the thread https://github.com/notifications/unsubscribe-auth/AF19cQEQL4Sv0AuHCKL3O86J79xaiynpks5sUJmDgaJpZM4Op7gz .

akash23 commented 7 years ago

If I don't apply the fix (rootDir one) I get a different set of errors with respect to the e2e files not being present in the rootDir. This happens in both 4.2.2 and alpha. I think a lot of other dependencies have been deprecated as well like isparta-intrumenter-loader and angular-universal so i was wondering if there's going to be a release with ng4 and other fixes soon.

PS: Big fan of this generator and really want to use it with the updated features.

stherrienaspnet commented 7 years ago

Since you are interested in angular 4, if you have some free time you are welcome to help us to bring alpha faster.

Le 3 août 2017 7:49 AM, "akash23" notifications@github.com a écrit :

If I don't apply the fix (rootDir one) I get a different set of errors with respect to the e2e files not being present in the rootDir. This happens in both 4.2.2 and alpha. I think a lot of other dependencies have been deprecated as well like isparta-intrumenter-loader and angular-universal so i was wondering if there's going to be a release with ng4 and other fixes soon.

PS: Big fan of this generator and really want to use it with the updated features.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/angular-fullstack/generator-angular-fullstack/issues/2614#issuecomment-319946917, or mute the thread https://github.com/notifications/unsubscribe-auth/AF19cVVLHXfvl5NcCdhxm0rayUTSRrt7ks5sUbPOgaJpZM4Op7gz .

akash23 commented 7 years ago

I have a beginner level knowledge but I'll try my best to contribute as much as possible. Thanks.