Error: Cannot find module ‘worker_ ‘threads’ solution
Try vite to create Vue project for the first time, and run NPM run dev
with an error
This is a node version problem. Version 12 or above is required
PS D:\qian_duan-learn\vue3-learn\vue3demo02> node -v
v10.13.0
PS D:\qian_duan-learn\vue3-learn\vue3demo02>
Just upgrade the node version
npm install -g n (mac need to add sudo)
n latest
Of course, it is more recommended that you use NVM to install multiple node versions to meet the requirements of different projects
Read More:
- The vue3 project Error: Cannot find module’vue-loader-v16/package.json’
- Error: Cannot find module ‘./application‘ [How to Solve]
- [Solved] Error: Cannot find module ‘@vue/cli-shared-utils‘
- [Solved] Error: Cannot find module ‘@vue/cli-shared-utils
- Node.js Error: Cannot find module express [How to Solve]
- [webpack-cli] Error: Cannot find module ‘vue/compiler-sfc‘
- [Solved] Error: Cannot find module ‘@/views/xxx‘ at webpackEmptyContext
- [Solved] Error: Cannot find module ‘vue-template-compiler/package.json‘ Require stack:
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- How to Solve Nodejs error: cannot find module ‘. /application’
- Can’t resolve ‘ansi-html-community’ & Cannot find module ‘is-docker (vuex-persistedstate Installed)
- Node.js Error: Error: Cannot find module ‘express‘ [How to Solve]
- [Solved] Node error: Error: Cannot find module ‘body-parser‘
- [Solved] ERROR Error: Cannot find module ‘vue-loader-v16/package.json‘
- [Solved] Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer‘
- [Solved] Syntax Error: Error: Cannot find module ‘cache-loader‘
- [Solved] Vue Project Error: Error: Cannot find module ‘webpack‘ Require stack以及Error: Rule can only have one resource so
- Syntax Error: Error: Cannot find module ‘less‘ [How to Solve]
- [Solved] Syntax Error: Error: Cannot find module ‘@vue/babel-preset-app‘