linnovate / mean

The MEAN stack uses Mongo, Express, Angular(6) and Node for simple and scalable fullstack js applications
http://mean.io
12.12k stars 3.44k forks source link

Getting errors while installing #1835

Closed ghost closed 7 years ago

ghost commented 7 years ago

npm WARN @angular/animations@4.3.6 requires a peer of @angular/core@4.3.6 but none was installed. npm WARN @angular/cdk@2.0.0-beta.11 requires a peer of @angular/common@^4.4.3 but none was installed. npm WARN @angular/common@4.3.6 requires a peer of @angular/core@4.3.6 but none was installed. npm WARN @angular/compiler@4.3.6 requires a peer of @angular/core@4.3.6 but none was installed. npm WARN @angular/compiler-cli@4.3.6 requires a peer of @angular/core@4.3.6 but none was installed. npm WARN @angular/core@4.4.3 requires a peer of zone.js@^0.8.4 but none was installed. npm WARN @angular/forms@4.3.6 requires a peer of @angular/core@4.3.6 but none was installed. npm WARN @angular/http@4.3.6 requires a peer of @angular/core@4.3.6 but none was installed. npm WARN @angular/material@2.0.0-beta.11 requires a peer of @angular/common@^4.4.3 but none was installed. npm WARN @angular/platform-browser@4.3.6 requires a peer of @angular/core@4.3.6 but none was installed. npm WARN @angular/platform-browser-dynamic@4.3.6 requires a peer of @angular/core@4.3.6 but none was installed. npm WARN @angular/platform-server@4.3.6 requires a peer of @angular/core@4.3.6 but none was installed. npm WARN @angular/router@4.3.6 requires a peer of @angular/core@4.3.6 but none was installed. npm WARN preboot@5.0.0-rc.10 requires a peer of zone.js@^0.8.0 but none was installed.

Jackychans commented 7 years ago
screen shot 2017-09-26 at 13 30 26

I also got another issue in the first time installation (after npm install and npm start). Looks like issue coming from material design.

I tried using nvm to switch between node 8.5 (npm5), 6.11.3 and 7.7.4 but it does not work. Source code built and run on MacOSX

By the way, if run command line docker build, there was also an issue:

screen shot 2017-09-26 at 13 32 53
morizmartiner commented 7 years ago

I solved this problem partly by removing the ^ infront of the version code of the following dependencies: (at)angular/material and (at)angular/cdk

But I still get the following error/warning (when doing npm install):

npm WARN angular2-universal@2.1.0-rc.1 requires a peer of zone.js@~0.6.21 but none is installed. You must install peer dependencies yourself.

liorkesos commented 7 years ago

Nice catch... Which dependency? It was unclear If you can submit a PR I'll review and merge Lior

On Sep 26, 2017 9:45 PM, "Moriz Martiner" notifications@github.com wrote:

I solved this problem partly by removing the ^ infront of the version code of the following dependencies: ,

I get the following error/warning (when doing npm install):

npm WARN angular2-universal@2.1.0-rc.1 requires a peer of zone.js@~0.6.21 but none is installed. You must install peer dependencies yourself.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/linnovate/mean/issues/1835#issuecomment-332296799, or mute the thread https://github.com/notifications/unsubscribe-auth/AAO9I7N_BXO0EhbcXYGNVW7UQFrQWW6Gks5smUZFgaJpZM4PjuBD .

nhutcorp commented 7 years ago

@liorkesos Here is the fixed PR https://github.com/linnovate/mean/pull/1836

Jackychans commented 7 years ago

Hi @liorkesos li thanks for your update. I'm able to run npm start now.

However, it's still showing error in console log, originated from graphQL.

screen shot 2017-09-27 at 10 53 39
liorkesos commented 7 years ago

Hi guys thanks for the research and the pr - I merged mlthe fix yesterday. Are you experiencing therapeutics as well?

nhutcorp commented 7 years ago

Currently this repo is using @angular/material '2.0.0-beta.10', it's not lasted version yet. My PR is allow to use the last version of MD. I also use angular-starter to dev a MEAN project, demo here: http://meancp.sendvn.com/ user: demo pwd: demo More information: https://nhutcorp.com/product/mean-2-fullstack-solution-with-angular-4-and-typescript-59b0f213512c3a2f48d5ad34

liorkesos commented 7 years ago

Cool, I'll review and merge Lior

morizmartiner commented 7 years ago

Has someone found a fix for the graphQL error?

Jackychans commented 7 years ago

it seemed nobody :(

liorkesos commented 7 years ago

Fixed - it had to do with graphql version clashes between dependencies..

phoenix377 commented 7 years ago

@liorkesos Same issue is happening again with latest master branch.