Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins
https://nodeclipse.github.io/
158 stars 78 forks source link

NPM Modules usage question #95

Closed kinosang closed 10 years ago

kinosang commented 10 years ago

I use nom to manage modules for Node.js. But Nodeclipse not support it. When I use the modules installed by npm, it tell me "Cannot find module".

P.S. I use Eclipse Kepler with nod eclipse plugin for developing and forever for debugging on Mac OS X 10.9.

paulvi commented 10 years ago

What is nom? What is URL for references. Usually module managers does not support other module manager.

It is the first time I hear about nom. So related supprt won't be in top list. What exact support do you expact? Would you start by yourself?

kinosang commented 10 years ago

Err...I want to say "npm" not "nom".

Node 0.10.22 with NPM 1.3.14. Default path of nom modules if /usr/local/lib/node_mudoles.

paulvi commented 10 years ago

It is unclear what you want or what problem is solved. Try to explain in simple sentences and giving more details.

Is something just doesn't work try asking on www.stackoverflow.com

kinosang commented 10 years ago

Un-huh, i'm sorry that my English is not very well and didn't explain the problem clearly. For example, I installed module pg, and I opened terminal to run node and typed "require('pg');", it works well. But when I use Nodeclipse, it returned an error: Error: Cannot find module 'pg' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at repl:1:1 at REPLServer.self.eval (repl.js:110:21) at repl.js:249:20 at REPLServer.self.eval (repl.js:122:7) at Interface. (repl.js:239:12) at Interface.EventEmitter.emit (events.js:95:17)

paulvi commented 10 years ago

Please do ask on www.stackoverflow.com on how to use npm, eclipse, nodeclipse etc and not as a issue for Nodeclipse

You can put link to your questions here

kinosang commented 10 years ago

Now, I've found the way to solve the problem. Just set up a new variable in Preferences – General – Workspace – Linked Resources to the path of node_modules. I think you can add this tip into Nodeclipse FAQ page for our fresh men.

paulvi commented 10 years ago

It is still unclear for me what problems is solved.

But welcome to add your question and your answer to Nodeclipse Help

https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.help/contents/FAQ.md

With GitHub it is possible to do all changes online.