{"id":283,"date":"2014-03-06T09:46:56","date_gmt":"2014-03-06T09:46:56","guid":{"rendered":"http:\/\/nikola-breznjak.com\/blog\/?p=283"},"modified":"2015-08-20T11:43:15","modified_gmt":"2015-08-20T11:43:15","slug":"cant-install-gulp-js-or-update-npm-past-version-1-2-32","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/javascript\/nodejs\/cant-install-gulp-js-or-update-npm-past-version-1-2-32\/","title":{"rendered":"Can&#8217;t install gulp.js or update npm past version 1.2.32"},"content":{"rendered":"<p>My problem started with not being able to install <a href=\"http:\/\/gulpjs.com\/\">gulp<\/a>. I checked my npm version (<span class=\"lang:default decode:true  crayon-inline \">npm &#8211;version<\/span>\u00a0) and saw I have version 1.2.32 whilst the time of this writing the newest version was 1.4.3. After countless trying of commands like<\/p>\n<pre class=\"lang:default decode:true\">npm cache clean\r\nnpm update -g npm\r\nnpm update\r\nnpm install gulp -g<\/pre>\n<p>and reinstalling Node.js from official site I realized that even though I<span style=\"line-height: 1.5;\">\u00a0removed my Node.js installation from <\/span><span class=\"lang:default decode:true  crayon-inline\">C:\\Program Files\\nodejs<\/span><span style=\"line-height: 1.5;\">\u00a0\u00a0I still had it in\u00a0<\/span><span class=\"lang:default decode:true  crayon-inline\">C:\\Program Files (x86)<\/span><span style=\"line-height: 1.5;\">. Doh! :\/ So, after I removed both installations, I redownloaded the exe file from <a href=\"http:\/\/nodejs.org\/\">Nodejs.org<\/a> and installed to <\/span><span class=\"lang:default decode:true  crayon-inline\">C:\\nodejs<\/span><span style=\"line-height: 1.5;\">. After this, when I ran <span class=\"lang:default decode:true  crayon-inline\">npm install gulp<\/span><\/span>\u00a0everything went well. However, when I tried to install it globally (<span class=\"lang:default decode:true  crayon-inline \">npm install gulp -g<\/span>\u00a0) I got:<\/p>\n<pre class=\"lang:default decode:true \">npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!\r\nnpm ERR! peerinvalid Peer generator-angular@0.6.0 wants generator-karma@~0.6.0\r\nnpm ERR! peerinvalid Peer generator-angular-fullstack@1.2.7 wants generator-karma@&gt;=0.6.0\r\n\r\nnpm ERR! System Windows_NT 6.1.7601\r\nnpm ERR! command \"C:\\\\nodejs\\\\\\\\node.exe\" \"C:\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"gulp-util\" \"-g\"\r\nnpm ERR! cwd C:\\Users\\Nikola\\Desktop\\skeleton\r\nnpm ERR! node -v v0.10.26\r\nnpm ERR! npm -v 1.4.3\r\nnpm ERR! code EPEERINVALID\r\nnpm ERR!\r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     C:\\Users\\Nikola\\Desktop\\skeleton\\npm-debug.log\r\nnpm ERR! not ok code 0<\/pre>\n<p>Then I uninstalled\u00a0<span class=\"lang:default decode:true  crayon-inline \">npm uninstall -g generator-karma<\/span>\u00a0and\u00a0<span class=\"lang:default decode:true  crayon-inline \">npm uninstall -g generator-angular<\/span>\u00a0, and gulp installed fine.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My problem started with not being able to install gulp. I checked my npm version (npm &#8211;version\u00a0) and saw I have version 1.2.32 whilst the time of this&hellip;<\/p>\n","protected":false},"author":1,"featured_media":285,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-283","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\/283","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=283"}],"version-history":[{"count":4,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":288,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/283\/revisions\/288"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/285"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}