npm install -g angular-cli shows error

1

Before I was presenting a message that git could not be found, I then reinstalled, corrected PATH , but now it displays another error message, can anyone suggest me what to do?

Binary is fine; exiting.
C:\Users\Rafael\AppData\Roaming\npm\ng -> C:\Users\Rafael\AppData\Roaming\npm\no
de_modules\angular-cli\bin\ng
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "install" "-g" "angular-cli"
npm ERR! node v4.6.0
npm ERR! npm  v2.15.9
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package @angular/[email protected] does not satisfy its si
blings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/compiler@2.
0.2
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/compiler
@2.1.0

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Windows\system32\npm-debug.log

npm-debug file content (final part only):

  

276789 info install [email protected]   276790 info postinstall [email protected]   C: \ Users \ Rapid \ AppData \ Roaming \ npm-cache_locks \ angular-cli-a36e756331c108c0.lock for C: \ Users \ Rapid \ AppData \ Roaming \ npm \ node_modules \ angular-cli   Verbose validateInstall loading C: \ Users \ Rapid \ AppData \ Roaming \ npm \ package.json for validation   276793 verbose stack Error: The package @ angular / compiler @ 2.1.0 does not satisfy its siblings' peerDependencies requirements!   276793 verbose stack at C: \ Program Files \ nodejs \ node_modules \ npm \ lib \ install.js: 125: 32   276793 verbose stack at C: \ Program Files \ nodejs \ node_modules \ npm \ lib \ install.js: 268: 7   276793 verbose stack at C: \ Program Files \ nodejs \ node_modules \ npm \ node_modules \ read-installed \ read-installed.js: 142: 5   276793 verbose stack at C: \ Program Files \ nodejs \ node_modules \ npm \ node_modules \ read-installed \ read-installed.js: 263:14   276793 verbose stack at cb (C: \ Program Files \ nodejs \ node_modules \ npm \ node_modules \ slide \ lib \ async-map.js: 47:24)   276793 verbose stack at C: \ Program Files \ nodejs \ node_modules \ npm \ node_modules \ read-installed \ read-installed.js: 263:14   276793 verbose stack at cb (C: \ Program Files \ nodejs \ node_modules \ npm \ node_modules \ slide \ lib \ async-map.js: 47:24)   276793 verbose stack at C: \ Program Files \ nodejs \ node_modules \ npm \ node_modules \ read-installed \ read-installed.js: 263:14   276793 verbose stack at cb (C: \ Program Files \ nodejs \ node_modules \ npm \ node_modules \ slide \ lib \ async-map.js: 47:24)   276793 verbose stack at C: \ Program Files \ nodejs \ node_modules \ npm \ node_modules \ read-installed \ read-installed.js: 263:14   276794 C: \ Windows \ system32   276795 Windows NT 6.1.7601 error   "C: \ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js" "install" "-g" "angular-cli"   276797 error node v4.6.0   276798 error npm v2.15.9   276799 error code EPEERINVALID   276800 error peerinvalid The package @ angular / compiler @ 2.1.0 does not satisfy its siblings' peerDependencies requirements!   276800 error peerinvalid Peer @ angular / compiler-cli @ 0.6.4 wants @ angular / compiler @ 2.0.2   276800 error peerinvalid Peer @ angular / platform-server @ 2.1.0 wants @ angular / compiler @ 2.1.0   Verbose exit [1, true]

    
asked by anonymous 20.10.2016 / 22:12

1 answer

2

peerInvalid is a packet inconsistency error. It can be fixed by deleting the folder node_modules and running npm update , which should solve the problem because npm will download the updated packages.

If the problem is caused by a global package, run npm update -g .

    
21.10.2016 / 00:34