Предупреждения php Omega 4 с папкой модулей узлов с установкой gulp


Итак, я уже некоторое время с удовольствием использую Omega 4 с SASS. По соображениям рабочего процесса и производительности я выбрал настройку Gulp/Ruby SASS. Недавно у меня появилась куча предупреждений, связанных с ошибками в файле file.inc в папке includes. На данном этапе я действительно не знаю, что вызывает ошибки. Иногда я получаю их в верхней части страницы над моим контентом (где обычно появляются предупреждения о дерзости), а также в блоке розовых/оранжевых предупреждений php. Кажется, это происходит когда его что-то не устраивает в моем дерзком форматировании, но опять же я не уверен.

Мы будем признательны за любое понимание того, что является причиной этого.

Warning: opendir(sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie,sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie): The system cannot find the path specified. (code: 3) in file_scan_directory() (line 2118 of C:\Users\Nick\Sites\devdesktop\postcatlocal\includes\file.inc).
Warning: opendir(sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie): failed to open dir: No such file or directory in file_scan_directory() (line 2118 of C:\Users\Nick\Sites\devdesktop\postcatlocal\includes\file.inc).
Warning: opendir(sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie,sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie): The system cannot find the path specified. (code: 3) in file_scan_directory() (line 2118 of C:\Users\Nick\Sites\devdesktop\postcatlocal\includes\file.inc).
Warning: opendir(sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie): failed to open dir: No such file or directory in file_scan_directory() (line 2118 of C:\Users\Nick\Sites\devdesktop\postcatlocal\includes\file.inc).
Warning: opendir(sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie,sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie): The system cannot find the path specified. (code: 3) in file_scan_directory() (line 2118 of C:\Users\Nick\Sites\devdesktop\postcatlocal\includes\file.inc).
Warning: opendir(sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie): failed to open dir: No such file or directory in file_scan_directory() (line 2118 of C:\Users\Nick\Sites\devdesktop\postcatlocal\includes\file.inc).
Warning: opendir(sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie,sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie): The system cannot find the path specified. (code: 3) in file_scan_directory() (line 2118 of C:\Users\Nick\Sites\devdesktop\postcatlocal\includes\file.inc).
Warning: opendir(sites/all/themes/postomega/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/read-pkg-up/node_modules/read-pkg/node_modules/load-json-file/node_modules/pinkie-promise/node_modules/pinkie): failed to open dir: No such file or directory in file_scan_directory() (line 2118 of C:\Users\Nick\Sites\devdesktop\postcatlocal\includes\file.inc).
 2
Author: nizz0k, 2015-11-27

1 answers

Похоже, что вы используете Windows, возникла долгосрочная проблема с NPM, в которой структура вложенности зависимостей node_module нарушает работу Windows. Проблема в том, что папки располагаются так далеко, что они создают путь к файлу длиннее, чем может вместить Windows.

Долгое время казалось, что они не хотели это исправлять, и существовали различные способы обойти это, которые не всегда срабатывали, но, похоже, они наконец добавили опцию в NPM3, который позволяет сглаживать зависимости.

Если вы обновитесь до NPM3, удалите свою папку node_modules и повторно запустите npm install, у вас больше не должно быть этой проблемы.

 2
Author: Patrick Ryan, 2015-11-27 19:06:45