
Although this approach will flatten the folder structure and prevent loading of duplicate modules, this workaround feels unnatural. As the npm ecosystem grows, nested dependency chains will become too long and this workaround become unusable.Īdding ALL dependences to the root folder's package.json file was mentioned in one thread I came across. Symbolic Links can be used to shorten file paths, but these are kludgy hacks. Rinse and repeat when dependencies change or when I need to spin up a new project.Fire up Cygwin and use cp to copy the node_modules folder into a destination project.



comparable to npm on OSX, npm on Linux, ruby gems or even nuget) I don't want to fiddle with a bunch of manual file edits, symlinks, etc. Is there an npm workflow for Windows that just works the way it was intended? "run the command and the files install" (e.g. I'd like a pragmatic approach for handling this problem right now on Windows, irrespective of what the Node community may or may not provide to improve npm usability on the Windows in the future.

I'm hitting a wall trying to use gulp plug-ins like Browser-Sync, because the node_modules folder graph fans out making the windows file paths too long to copy the files. I want to use gulp and related front-end tool chains in Windows-hosted development environments.
