jelbourn / material2-app

Simple app that consumes Angular Material 2 components
651 stars 280 forks source link

npm install failing #20

Open georgeneil opened 7 years ago

georgeneil commented 7 years ago
npm install

is failing with the following output

>npm install                                                                                                                                                    
npm WARN peerDependencies The peer dependency @angular/compiler@2.0.2 included from @angular/compiler-cli will no                                                                          
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency                                                                                                  
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.                                                                                                
npm WARN peerDependencies The peer dependency @angular/platform-server@2.0.2 included from @angular/compiler-cli will no                                                                   
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency                                                                                                  
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.                                                                                                
npm WARN peerDependencies The peer dependency @angular/core@2.0.2 included from @angular/compiler-cli will no                                                                              
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency                                                                                                  
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.                                                                                                
npm WARN optional dep failed, continuing fsevents@1.0.14                                                                                                                                   
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue                                                                                
npm ERR! Windows_NT 6.3.9600                                                                                                                                                               
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"                                                              
npm ERR! node v4.2.4                                                                                                                                                                       
npm ERR! npm  v2.14.12                                                                                                                                                                     
npm ERR! code EPEERINVALID                                                                                                                                                                 

npm ERR! peerinvalid The package @angular/compiler@2.1.0 does not satisfy its siblings' peerDependencies requirements!                                                                     
npm ERR! peerinvalid Peer @angular/platform-browser-dynamic@2.1.0 wants @angular/compiler@2.1.0                                                                                            
npm ERR! peerinvalid Peer @angular/platform-server@2.1.0 wants @angular/compiler@2.1.0                                                                                                     
npm ERR! peerinvalid Peer @angular/compiler-cli@0.6.4 wants @angular/compiler@2.0.2 
BCusack commented 7 years ago

Make sure node is up to date. Update dependencies in package.json. npm install typings, then npm install

georgeneil commented 7 years ago

My node is latest and

npm install typings

gives me following error

$ npm install typings
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "typings"
npm ERR! node v4.2.4
npm ERR! npm  v2.14.12
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package @angular/compiler@2.1.0 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/platform-browser-dynamic@2.1.0 wants @angular/compiler@2.1.0
npm ERR! peerinvalid Peer @angular/platform-server@2.1.0 wants @angular/compiler@2.1.0
npm ERR! peerinvalid Peer @angular/compiler-cli@0.6.4 wants @angular/compiler@2.0.2
skynode commented 7 years ago

My node is latest

The latest version of node is here

Besides that though, you're obviously mismatching angular 2 modules, their versions and their dependencies!

Neur0mante commented 7 years ago

Just change the compiler-cli in the dev dependencies inside the package.json to something like: "@angular/compiler-cli": "^2.1.0",

Also for some reason it wasnt happy until I made an asset folder in src with an empty .gitkeep file in it. Now it works, at least in JiT, for me.

Neur0mante commented 7 years ago

I just noticed #22 , the new dependencies should fix the issues.