Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When i create a zen subtheme. And go inside my theme and run npm install all dependent js packages get installed in sites/all/themes/zen_subtheme/node_modules.
The eslint package however has a dependenciy to the doctrine package which has lcov.info file (empty file).
full path: zen_subtheme/node_modules/eslint/node_modules/doctrine/coverage/lcov.info
This files causes warnings on the admin / appearance page since drupal thinks this is a bad formatted info file of subtheme inside zen_subtheme.
Comments
Comment #1
star-szrThis is a core issue, see these issues:
#619542: Malformed theme .info files break menu_router generation
#2329453: Ignore front end vendor folders to improve directory search performance
Not zen's fault, in other words :)
Comment #2
mallezieThanks for the update, and links to the relevant core issues.
Could we add the temporary workaround as described in #2329453: Ignore front end vendor folders to improve directory search performance
If this seems not a good idea, please close again.
Comment #3
star-szrThat's already in 7.x-6.x as it turns out :) http://cgit.drupalcode.org/zen/commit/STARTERKIT?h=7.x-6.x&id=02f730b068...
Comment #4
malleziehmm interesting.
This didn't seem to work, but running npm install does indeed remove the file. Probably something on my environment.
Comment #5
star-szrJust to mention, not sure what process you followed but that code is in a postinstall "hook" (not sure if that's actually what they call it in nodeland), so it's not run when do
npm update
, onlynpm install
.