-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module 'minimatch' #3922
Comments
Multiple confirmed fix: "I was able to clear it by doing a full Node/NPM uninstall by hunting down all associated files, deleting them completely and reinstalling Node 5 from the standard link on Nodejs.org front page. I used this link for full uninstall http://benznext.com/completely-uninstall-node-js-from-mac-os-x/" |
this is a dupe of #3606 Thank you for reporting though! Hopefully we'll have a fix sooner than later |
I had this error after I upgraded from node 0.12.x to nodejs 5 on Windows Srv 2008 R2 via chocolatey. Here's stack:
There was 'minimatch' in "C:\Program Files\nodejs\node_modules\npm\node_modules\minimatch" obviously. To fix it I had to remove |
@evil-shrike i have the same issue, but there is no such folder on my machine. |
@michapixel, just copy the folder URL that ends in rimraf, as shown in ur error logs (for deletion) |
For mac users, remove /usr/local/lib/node_modules/npm/node_modules/rimraf/node_modules |
Issue: Cannot find module 'minimatch'
Identified as Node Installer, not NPM, issue. Copying from NPM Issues Repo.
npm/npm#10449
npm/npm#10434
upgraded node version 5x and started getting this error.
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'i',
1 verbose cli '-g',
1 verbose cli 'yo' ]
2 info using npm@3.3.12
3 info using node@v5.1.0
4 verbose stack Error: Cannot find module 'minimatch'
4 verbose stack at Function.Module._resolveFilename (module.js:338:15)
4 verbose stack at Function.Module._load (module.js:289:25)
4 verbose stack at Module.require (module.js:366:17)
4 verbose stack at require (module.js:385:17)
4 verbose stack at Object. (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\node_modules\glob\glob.js:44:17)
4 verbose stack at Module._compile (module.js:425:26)
4 verbose stack at Object.Module._extensions..js (module.js:432:10)
4 verbose stack at Module.load (module.js:356:32)
4 verbose stack at Function.Module._load (module.js:313:12)
4 verbose stack at Module.require (module.js:366:17)
5 verbose cwd X:\cafeV2
6 error Windows_NT 6.2.9200
7 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "i" "-g" "yo"
8 error node v5.1.0
9 error npm v3.3.12
10 error code MODULE_NOT_FOUND
11 error Cannot find module 'minimatch'
12 error If you need help, you may report this error at:
12 error https://github.com/npm/npm/issues
13 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: