autocomplete-plus icon indicating copy to clipboard operation
autocomplete-plus copied to clipboard

Uncaught Error: Cannot find module 'minimatch'

Open TCambs opened this issue 9 years ago • 7 comments

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.9 System: Mac OS X 10.11 Thrown From: autocomplete-plus package, v2.19.0

Stack Trace

Uncaught Error: Cannot find module 'minimatch'

At module.js:330

Error: Cannot find module 'minimatch'
    at Module._resolveFilename (module.js:328:15)
    at Function.Module._resolveFilename (/Users/taylor/Downloads/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:270:25)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at AutocompleteManager.module.exports.AutocompleteManager.isCurrentFileBlackListed (/Users/taylor/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:576:21)
    at AutocompleteManager.isCurrentFileBlackListed (/Users/taylor/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
    at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Users/taylor/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:223:16)
    at /Users/taylor/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

  7x -0:04.3.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "wrap-guide"
    ],
    "themes": [
      "one-dark-ui",
      "monokai"
    ]
  }
}

Installed Packages

# User
No installed packages

# Dev
No dev packages

TCambs avatar Sep 01 '15 20:09 TCambs

This is really strange. Are you using a local version of autocomplete-plus?

benogle avatar Sep 16 '15 23:09 benogle

I shouldn't be. I haven't messed with any of Atoms config files outside of installing packages/themes

TCambs avatar Sep 17 '15 19:09 TCambs

Was this a one time thing or does it happen consistently?

benogle avatar Sep 17 '15 19:09 benogle

Happens every time I open Atom... I haven't found anyway to fix it myself.

TCambs avatar Sep 17 '15 19:09 TCambs

I meet the same problem. image but,when I have installed minimatch,It notice me 'Cannot find module ***'.

bluest-hu avatar Nov 23 '15 08:11 bluest-hu

@ihuguowei Your problem looks completely unrelated to this issue. This issue is specifically related to the bundled autocomplete-plus package for Atom, whereas you seem to be working in a more general Node.js context.

thomasjo avatar Nov 23 '15 08:11 thomasjo

@thomasjo sorry.my fault.

bluest-hu avatar Nov 25 '15 06:11 bluest-hu