Next.js Discord

Discord Forum

minimatch: run dev and run build error

Answered
Korean bullhead posted this in #help-forum
Open in Discord
Korean bullheadOP
Hello! Literally an hour ago I encountered a problem with build and dev, which is caused by the minimatch library. I tried to remove node_modules and write npm install, change node versions and update the minimatch package, moreover, I tried to create a new and pure projects 14.0.2 and 14.0.0 versions and still an error pops up when running “npx run dev” or “npx run build”. The problem appeared after I ran npm run build for the first time, while simultaneously deploying the dev version.

AppData\Local\npm-cache_npx\755986f37193a6d8\node_modules\run\run.js:127
if (minimatch(file, pattern)) {

TypeError: minimatch is not a function
Answered by Korean bullhead
My bad, it should be “npm” not “npx”, just a typo 🤦🏻‍♂️
View full answer

1 Reply

Korean bullheadOP
My bad, it should be “npm” not “npx”, just a typo 🤦🏻‍♂️
Answer