Reputation: 275
I am trying to run Gulp in Visual Studio for an angular app. Unfortunately I am getting this error:
Cannot evaluate the item metadata "%(FullPath)". The item metadata "%(FullPath)" cannot be applied to the path
"node_modules\gulp\node_modules\gulp-util\node_modules\dateformat\node_modules\meow\node_modules\normalize-package-data\node_modules\
hosted-git-info\test\bitbucket-https-with-embedded-auth.js". C:\Users\AIUZS03\Documents\Visual Studio 2015\Projects\MacroGraph\MacroGraph\
node_modules\gulp\node_modules\gulp-util\node_modules\dateformat\node_modules\meow\node_modules\normalize-package-data\node_modules\
hosted-git-info\test\bitbucket-https-with-embedded-auth.js
I understand the error and that the folder structure of the Gulp library is too long, but has anyone had any luck with a workaround so I can use Gulp and other Gulp libraries? Thanks!
Upvotes: 0
Views: 317
Reputation: 22054
Its a known problem; msbuild has problem with paths that are longer than 260 characters. Your particular issue can be avoided by flattening your npm dependencies using npm dedupe
.
Reference: https://docs.npmjs.com/cli/dedupe
Upvotes: 2