You’re looking for the npm link command, which is a two steps process:
- Run
npm linkfrom yourMyModuledirectory: this will create a global package symlinked to theMyModuledirectory - Run
npm link MyModulefrom yourMyAppdirectory: this will create aMyModulefolder innode_modules, symlinked to the global symlink (and thus to the real location ofMyModule).