Skip to content

Instantly share code, notes, and snippets.

@drogers98
Created May 1, 2015 18:04
Show Gist options
  • Save drogers98/7c2b2aba378b78c0d40c to your computer and use it in GitHub Desktop.
Save drogers98/7c2b2aba378b78c0d40c to your computer and use it in GitHub Desktop.
Remove .info files from node_modules, so Drupal doesn't pitch a fit. add to package.json, and NPM install removes the offenders! getting a Notice: Undefined index: name? Using NPM modules? Yeah, you probably need this...
"scripts": {
"prepublish": "find node_modules -name '*.info' -exec rm -f {} \\;"
},
@vensires
Copy link

vensires commented Feb 26, 2018

Directly executing this resulted in find: missing argument to '-exec'. Instead, the command find node_modules/ -name '*.info' -type f -delete proposed by http://kevinquillen.com/drupal/2015/06/10/fixing-segfault-in-drupal worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment