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"
  }

 

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.