Drupal's Drush Segmentation fault:11

Written by Arvind

Today I’m gonna show you how to fix segmentation fault:11 error in your DRUSH.

This is a conflict .info file and node modules. Remember, when we did the NPM install, some of the modules have .info file extension in them. drupal is now confused having more than one .info file in your theme. And some of the pages in your site may not load.

Let’s now fix this error. Delete the node_modules folder and add this script in your package.json.

  "scripts": {
    "postinstall": "find node_modules/ -name '*.info' -type f -delete"

Now when you do npm install add –unsafe-perm at the end.

sudo npm install --unsafe-perm

And now do drush and you’ll be good.

drush cc all