Closed twlk28 closed 10 years ago
it is no problem (dont need calculate the absolute path) for mac symbolic-link
Hey @twlk28,
Unfortunately I'm not able to test this on a Windows machine. I'm glad you've at least found a work around. If you're able to dig into this further let me know, I'd love to fix it if possible. It may be a problem though with symbolic links + Node generally though, rather than plugin specific.
thanks for your reply.
you are right. ^_^ when i rename the
seems in win32 , it resolve symlinks, then these is not such a dir named node_modules
where the plugins' cwd , so the plugin can not find the brother modules ; and in mac, it did not resolve symlinks as expected.
relate issue https://groups.google.com/forum/#!topic/nodejs/HffaX_dsUxY
mklink /d .\\node_modules <source>
to create such a node_modules file, for some reason.var absname = path.join(parentDir, 'node_modules', name);
and return by requireFn, i worked. but i dont know why.