github twitter linkedin email
NPM karma problems on windows
Apr 14, 2015
One minute read

Karma is great.  NPM is helpful.  Somehow, together they made my OS unhappy.

Windows has path limitations.  I couldn’t build my web project anymore, because there were some really deep folder structures in ‘node_modules’

If you get a message like this:

ASPNETCOMPILER : error ASPRUNTIME: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and
the directory name must be less than 248 characters.

It means you have a problem.

Here is a trick to deleting the files if you get stuck.  Basically, you use subst to create a drive letter association from part of the path.  This let’s you hide the length of the path from picky parts of the os.


Tags: npm javascript

Back to posts