{"id":2004,"date":"2015-08-03T10:59:50","date_gmt":"2015-08-03T10:59:50","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=2004"},"modified":"2015-08-03T10:59:50","modified_gmt":"2015-08-03T10:59:50","slug":"npm-err-peerinvalid-the-package-node-inspector-does-not-satisfy-its-siblings-peerdependencies-requirements","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/javascript\/nodejs\/npm-err-peerinvalid-the-package-node-inspector-does-not-satisfy-its-siblings-peerdependencies-requirements\/","title":{"rendered":"npm ERR! peerinvalid The package node-inspector does not satisfy its siblings&#8217; peerDependencies requirements"},"content":{"rendered":"<p>Recently I was reinstalling ionic and cordova with:<\/p>\n<pre class=\"lang:default decode:true \">npm install -g cordova ionic<\/pre>\n<p>but I got the following error:<\/p>\n<pre class=\"lang:default decode:true\">    E:\\IonicTesting&gt;npm install -g cordova ionic\r\n    npm WARN engine cordova-js@4.0.0: wanted: {\"node\":\"~0.10.x\"} (current: {\"node\":\"0.12.7\",\"npm\":\"2.11.3\"})\r\n    npm WARN engine npm@1.3.4: wanted: {\"node\":\"&gt;=0.6\",\"npm\":\"1\"} (current: {\"node\":\"0.12.7\",\"npm\":\"2.11.3\"})\r\n    npm WARN engine xmlbuilder@2.2.1: wanted: {\"node\":\"0.8.x || 0.10.x\"} (current: {\"node\":\"0.12.7\",\"npm\":\"2.11.3\"})\r\n    npm WARN engine cordova-js@4.0.0: wanted: {\"node\":\"~0.10.x\"} (current: {\"node\":\"0.12.7\",\"npm\":\"2.11.3\"})\r\n    npm WARN engine npm@1.3.4: wanted: {\"node\":\"&gt;=0.6\",\"npm\":\"1\"} (current: {\"node\":\"0.12.7\",\"npm\":\"2.11.3\"})\r\n    npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tre\r\n    e\r\n    C:\\Users\\Nikola\\AppData\\Roaming\\npm\\cordova -&gt; C:\\Users\\Nikola\\AppData\\Roaming\\npm\\node_modules\\cordova\\bin\\cordova\r\n    npm WARN engine xmlbuilder@2.2.1: wanted: {\"node\":\"0.8.x || 0.10.x\"} (current: {\"node\":\"0.12.7\",\"npm\":\"2.11.3\"})\r\n    npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tre\r\n    e\r\n    C:\\Users\\Nikola\\AppData\\Roaming\\npm\\ionic -&gt; C:\\Users\\Nikola\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic\r\n    npm WARN unmet dependency C:\\Users\\Nikola\\AppData\\Roaming\\npm\\node_modules\\generator-ionic requires cordova@'^4.2.0' but\r\n     will load\r\n    npm WARN unmet dependency C:\\Users\\Nikola\\AppData\\Roaming\\npm\\node_modules\\cordova,\r\n    npm WARN unmet dependency which is version 5.1.1\r\n    npm ERR! Windows_NT 6.1.7601\r\n    npm ERR! argv \"C:\\\\NodeJS\\\\\\\\node.exe\" \"C:\\\\NodeJS\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"-g\" \"cordova\" \"ionic\"\r\n    \r\n    npm ERR! node v0.12.7\r\n    npm ERR! npm  v2.11.3\r\n    npm ERR! code EPEERINVALID\r\n    \r\n    npm ERR! peerinvalid The package node-inspector does not satisfy its siblings' peerDependencies requirements!\r\n    npm ERR! peerinvalid Peer strong-cli@2.6.4 wants node-inspector@~0.7.0\r\n    \r\n    npm ERR! Please include the following file with any support request:\r\n    npm ERR!     E:\\IonicTesting\\npm-debug.log<\/pre>\n<p>At first I thought the reason is that I may have had an older version of <strong>node<\/strong>\u00a0or <strong>npm\u00a0<\/strong>but\u00a0wasn&#8217;t the case because my versions were up to date (date of this post: 03.08.2015):<\/p>\n<pre class=\"lang:default decode:true \">E:\\IonicTesting&gt;node -v\r\nv0.12.7<\/pre>\n<pre class=\"lang:default decode:true \">E:\\IonicTesting&gt;npm -v\r\n2.11.3<\/pre>\n<p>Also, I did try:<\/p>\n<pre class=\"lang:default decode:true \">npm update -g<\/pre>\n<p>and<\/p>\n<pre class=\"lang:default decode:true \">npm cache clean<\/pre>\n<p>as noted in the few StackOverflow answers, but it didn&#8217;t help. After a bit of googling and messing around I realized (an idea came from <a href=\"http:\/\/stackoverflow.com\/a\/21856244\/534755\">this StackOverflow answer<\/a>) that I could try uninstalling the dependencies which were messing with me:<\/p>\n<pre class=\"lang:default decode:true\">npm uninstall -g node-inspector\r\nnpm uninstall -g strong-cli\r\nnpm install -g generator-karma<\/pre>\n<p>After this I ran<\/p>\n<pre class=\"lang:default decode:true \">npm update -g<\/pre>\n<p>and then, to finally install Ionic and Cordova, I ran:<\/p>\n<pre class=\"lang:default decode:true \">npm install -g cordova ionic<\/pre>\n<p>And, what do you know &#8211; it worked. Hope this helps someone!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I was reinstalling ionic and cordova with: npm install -g cordova ionic but I got the following error: E:\\IonicTesting&gt;npm install -g cordova ionic npm WARN engine cordova-js@4.0.0:&hellip;<\/p>\n","protected":false},"author":1,"featured_media":2005,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2004","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nodejs"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/2004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=2004"}],"version-history":[{"count":1,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/2004\/revisions"}],"predecessor-version":[{"id":2006,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/2004\/revisions\/2006"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/2005"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=2004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=2004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=2004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}