3

I am running into the Windows Path character limit.

When I run an install of 'gulp' for example, via

npm install --save-dev gulp

in a folder such as "C:\Users\MyUsername\Visual Studio 2015\Projects\MyProject", I find that all the dependencies are deeply nested, such as:

C:\Users\MyUsername\Visual Studio 2015\Projects\MyProject\node_modules\gulp\node_modules\gulp-util\node_modules\dateformat\node_modules\meow\node_modules\loud-rejection\node_modules\signal-exit

Is there a way to avoid this? How do other Windows developers get past this?

blgrnboy
  • 4,877
  • 10
  • 43
  • 94

1 Answers1

4

Are you using a NPM version 3.x. According to this Node npm windows file paths are too long to install packages most problems with nesting is solved in version 3.x

Community
  • 1
  • 1
HansP
  • 111
  • 9
  • You are correct, even with a brand new installation of node.js, NPM was still at version 2.x. I updated it, and it works now! I will accept your answer shortly! – blgrnboy Dec 09 '15 at 10:02