npm config set user 0 npm config set unsafe-perm true or npm install -g --unsafe-perm xxx ====== Get width of elements are wider than body's ====== https://stackoverflow.com/a/26536833 $.each( $('*'), function() { if( $(this).width() > $('body').width()) { console.log("Wide Element: ", $(this), "Width: ", $(this).width()); } }); document.querySelectorAll('*').forEach(function(e) { if(document.querySelector('body').scrollWidth < e.scrollWidth) { console.log(e); } })