Where do global npm packages get installed on Ubuntu

Where is the default global node_modules folder on Ubuntu. For example where would this get installed: npm install -g gulp


Run npm root -g to see the location, which varies. A common path is /usr/local/lib/node_modules.

For more info see the npm docs on Global vs. Local installation

Need Your Help

How can we overlap two images using css style?

html css image

I have a list of images in an html table and need to overlap a small icon on each image. How can we do this using z index and positioning?

jQuery click event on parent, but finding the child (clicked) element

javascript jquery events dom

let say I have a parent element which has so many nested child elements inside of itself: