Skip to content

Instantly share code, notes, and snippets.

@aqualad
Last active March 31, 2017 17:04
Show Gist options
  • Save aqualad/1c4b333827c56a428ce56a40f32a0159 to your computer and use it in GitHub Desktop.
Save aqualad/1c4b333827c56a428ce56a40f32a0159 to your computer and use it in GitHub Desktop.
Fix for eslint crashing in Sublime when missing babel-eslint
  1. In the application toolbar
    Select Sublime Text > 
        Preferences > 
            Package Settings > 
                Either Babel or ESLint > 
                    Settings Default
    
  2. Find the setting for the node_modules install path in OS X
    • currently located at /usr/local/lib/node_modules
  3. Navigate to that directory
    • in my case: /usr/local/lib
  4. Install the missing package
    • Most likely:
      npm install babel-eslint # Most likely
      npm install eslint eslint-plugin-babel # Possible alternatives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment