4

When running npm install in homestead I get a long list of errors which start out with

npm ERR! UNKNOWN, mkdir '/home/vagrant/Code/gulp/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/node_modules/bin-wrapper/node_modules/bin-version-check/node_modules/bin-version/node_modules/find-versions'

My guess is the problem with the 260 character limit on paths that windows has and since all these folders map over to Windows from vagrant that is where the error is coming from.

Does anyone have an idea to get around this?

4

1 回答 1

0

我的猜测是您正在运行旧版本的 NPM,因为npm 3.0.0它使用专门针对 Windows 用户的平面依赖树,请参见此处:

适用于 Windows 用户的 NPM 3.0.0

只需从他们的站点再次下载节点并重新安装即可。

于 2015-11-02T08:10:20.607 回答