material2-app icon indicating copy to clipboard operation
material2-app copied to clipboard

npm install failing

Open georgeneil opened this issue 8 years ago • 5 comments

npm install

is failing with the following output

>npm install                                                                                                                                                    
npm WARN peerDependencies The peer dependency @angular/[email protected] 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/[email protected] 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/[email protected] 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 [email protected]                                                                                                                                   
npm WARN deprecated [email protected]: 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/[email protected] does not satisfy its siblings' peerDependencies requirements!                                                                     
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]                                                                                            
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]                                                                                                     
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected] 

georgeneil avatar Oct 15 '16 01:10 georgeneil

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

BCusack avatar Oct 16 '16 00:10 BCusack

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/[email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]

georgeneil avatar Oct 22 '16 01:10 georgeneil

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!

skynode avatar Oct 29 '16 01:10 skynode

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 avatar Nov 08 '16 16:11 Neur0mante

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

Neur0mante avatar Nov 09 '16 11:11 Neur0mante