I have node.js 0.8.14 installed on Ubuntu 12.10. I created a directory in my home directory with a sub directory
npm install myModule
After some further research I found the solution.
Running the command
npm config ls revealed that the default config
global=false (you see the default config with
npm config ls -l) was overwritten by
Reverting this to
global=false solved the issue.