

#LONG PATH TOOL INTELLIJ WINDOWS#
That’s a 66% decrease, and Windows is delighted to host this directory structure. Click OK.Īfter the flattening process has completed, only 346 folders exist within node_modules. Don’t be alarmed! It’s indicating that there’s a dependent NPM module called “flatten-packages” which must be installed at the system level. The first time running this extension, the dialog below will appear. Alternatively, you can right-click the package.json file and will see the same context menu option. Unfortunately, you cannot run Mads’ extension against the Dependencies/NPM folder instead, right-click the now visible node_modules directory, and select “Flatten Packages…”. From the Solution Explorer tab, click the “Show All Files” icon for the web project containing the node_modules directory. It’s under here that the NPM modules will be listed. In Visual Studio 2015, you see a nice Dependencies node in Solution Explorer.

Luckily, Mads Kristensen of the ASP.NET team authored a “Flatten Packages” Visual Studio extension which is compatible with 2012 – 2015. You want to wrangle this issue with the least amount of friction possible and by that, I mean not using the command line. The IDE abstracts away the intricacies of several development tools and technologies, thus maximizing productivity and allowing developers to focus on tackling the problems surfacing in their business domain. If you’re a long-time Visual Studio user like myself, then you’ve been spoiled. There are 1,039 folders total within node_modules. Keep in mind that NPM 2.x is being used in this example.Īs a Windows user, what are your options to mitigate this problem? Below are 3 possibilities. To effectively portray the problem we’re about to explore, execute the following command in your project’s root directory: npm listĪ quick look at the screenshots below proves that the maximum file path limitation is likely to be exceeded, due to NPM’s nesting of dependencies. This version was installed when upgrading to Node.js version 0.12.7. Execute the following command to see the version being used: npm -vįor this blog post, version 2.11.3 is being used.

#LONG PATH TOOL INTELLIJ INSTALL#
If you were to install Node.js on your machine at the time of this writing, NPM 2.x would be installed along with it. Said modules are installed into a node_modules directory in the project’s root directory. Node.js relies on NPM to install the required modules. My goal with this blog post is to advocate practical solutions to the problem, but let’s first set the stage with a bit of background. There is a great deal of uncertainty amongst NPM users on Windows who have encountered the 260-character path length limitation. This limitation stems from the Windows API’s MAX_PATH constraint. Since the volatile package management landscape is a personal topic of interest, I proposed a “Battle of the Package Managers” session and, there was one takeaway that resonated afterwards. What is an Open Space, you ask? In a nutshell, attendees are given the opportunity to create hour-long, ad hoc sessions on topics of their choosing to engage with other attendees. The abundance of bacon-wrapped cuisine comes in a close second place. Something I’ve always admired about this particular developers’ conference is its Open Spaces concept. This past week, I had the pleasure of attending the fourth annual That Conference in Wisconsin Dells.
