<p dir="auto">I ran into this error trying to setup a clean installation of the bootstrap source for development:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer grunt-banner@0.2.2 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-contrib-clean@0.5.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-concat@0.3.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-connect@0.6.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-copy@0.5.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-csslint@0.2.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-cssmin@0.7.0 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-contrib-jade@0.9.1 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-contrib-jshint@0.8.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-less@0.9.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-qunit@0.4.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-uglify@0.3.3 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-watch@0.5.3 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-csscomb@2.0.1 wants grunt@~0.4.2
npm ERR! peerinvalid Peer grunt-exec@0.4.3 wants grunt@~0.4
npm ERR! peerinvalid Peer grunt-html-validation@0.1.15 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-jekyll@0.4.2 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-jscs-checker@0.3.2 wants grunt@0.4.2
npm ERR! peerinvalid Peer grunt-saucelabs@5.0.1 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-sed@0.1.1 wants grunt@~0.4

npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command &quot;/usr/bin/node&quot; &quot;/usr/bin/npm&quot; &quot;install&quot;
npm ERR! cwd /vagrant/bower_components/bootstrap
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code EPEERINVALID
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /vagrant/bower_components/bootstrap/npm-debug.log
npm ERR! not ok code 0"><pre class="notranslate"><code class="notranslate">npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer grunt-banner@0.2.2 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-contrib-clean@0.5.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-concat@0.3.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-connect@0.6.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-copy@0.5.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-csslint@0.2.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-cssmin@0.7.0 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-contrib-jade@0.9.1 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-contrib-jshint@0.8.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-less@0.9.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-qunit@0.4.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-uglify@0.3.3 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-watch@0.5.3 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-csscomb@2.0.1 wants grunt@~0.4.2
npm ERR! peerinvalid Peer grunt-exec@0.4.3 wants grunt@~0.4
npm ERR! peerinvalid Peer grunt-html-validation@0.1.15 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-jekyll@0.4.2 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-jscs-checker@0.3.2 wants grunt@0.4.2
npm ERR! peerinvalid Peer grunt-saucelabs@5.0.1 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-sed@0.1.1 wants grunt@~0.4

npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/bower_components/bootstrap
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code EPEERINVALID
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /vagrant/bower_components/bootstrap/npm-debug.log
npm ERR! not ok code 0
</code></pre></div>
<p dir="auto">I'm creating a fresh ubuntu vm with vagrant, using the script here: <a href="https://gist.github.com/davethegr8/10935832">https://gist.github.com/davethegr8/10935832</a></p>
<p dir="auto">Full output from the <code class="notranslate">vagrant up</code> command: <a href="https://gist.github.com/davethegr8/10936309">https://gist.github.com/davethegr8/10936309</a></p>
<p dir="auto">Hi.</p>
<p dir="auto">I am switching an old application that uses Prototype to jQuery and Bootstrap, but because of the amount of work it requires, I need to be able to make both coexist during the migration.</p>
<p dir="auto">Here I have reproduced an issue I have:<br>
<a href="http://jsfiddle.net/u6vWL/32/" rel="nofollow">http://jsfiddle.net/u6vWL/32/</a></p>
<p dir="auto">Actually, the clearMenus() function triggers an "hide" event, and then jQuery try to call the corresponding "hide" function of the DOM Element. Because prototype have added an "hide" function, it is called.</p>
<p dir="auto">See: <a href="http://api.jquery.com/trigger/" rel="nofollow">http://api.jquery.com/trigger/</a></p>
<blockquote>
<p dir="auto">Note: For both plain objects and DOM objects other than window, if a triggered event<br>
name matches the name of a property on the object, jQuery will attempt to invoke the<br>
property as a method if no event handler calls event.preventDefault(). If this behavior is<br>
not desired, use .triggerHandler() instead.</p>
</blockquote>
<p dir="auto">Fix:</p>
<p dir="auto">Replace (in : clearMenus())</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))"><pre class="notranslate"><code class="notranslate">$parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
</code></pre></div>
<p dir="auto">by:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$parent.triggerHandler(e = $.Event('hide.bs.dropdown', relatedTarget))"><pre class="notranslate"><code class="notranslate">$parent.triggerHandler(e = $.Event('hide.bs.dropdown', relatedTarget))
</code></pre></div>