Created
May 1, 2015 18:04
-
-
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...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"prepublish": "find node_modules -name '*.info' -exec rm -f {} \\;" | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Directly executing this resulted in
find: missing argument to '-exec'
. Instead, the commandfind node_modules/ -name '*.info' -type f -delete
proposed by http://kevinquillen.com/drupal/2015/06/10/fixing-segfault-in-drupal worked.