Install node.js modules in eclipse

Sashi picture Sashi · Mar 16, 2013 · Viewed 62.9k times · Source

I am trying to develop a chat app with node.js and socket.io in an eclipse environment. I have installed node.js in eclipse but I don't know how to install node modules such as expresss, socket io, etc.

Please anyone tell me how to setup node modules in an eclipse environment.

Answer

K. Siva Prasad Reddy picture K. Siva Prasad Reddy · Apr 23, 2014

From https://groups.google.com/forum/#!topic/nodeclipse/FgUci2ZXpoQ

  1. Double-click package.json on the Package Explorer to open it.
  2. Add into dependencies section what you want to install, and save it.
  3. Select package.json on the Package Explorer, open context menu by right-clicking, and select [Run As]-[npm install] menu.