Solve the ‘Segmentation Fault’ error using Drush

08/02/2016

 

The objective of this snippet is to try to eliminate the ‘Segmentation Fault’ error which appears when any Drush command runs.  This error occurs if you have the folder node_modules from NPM installed which you would need to be able to compile the sass with grunt.  It is necessary to modify the file package.json which can be found in the root directory of the theme including the following code:


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