3
votes

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?

1
There's a way to avoid this: stackoverflow.com/a/35227212/580651 - luchaos

1 Answers

4
votes

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