Train of thought
Through the error message, we can see that the core problem is that the sass file cannot be found in the dependent file. This prompts us to reinstall sass
1. Switch to the dependent folder of the current project through CD, that is, node_modules file, and then run the command to install sass. The command is as follows
npm rebuild node-sass
2 . Then switch to the project folder and run the command to update it. The command is as follows:
npm update
3. Finally, run the command to start the project
npm run dev
Read More:
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- [Solved] Vue Error: Module build failed Error Node Sass version 6.0.1 is incompatible with ^4.0.0.
- [Solved] Module build failed: Error: Vue packages version mismatch
- [Solved] Vue Error: Module build failed: Error: No PostCSS Config found in
- [Solved] Vue calls style loader error: Module build failed: CssSyntaxError
- The vue3 project Error: Cannot find module’vue-loader-v16/package.json’
- [Solved] Uniapp project use vant icon Error: (module build failed from./node_modules/postcss loader/SRC/index)
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- [Solved] Vue Project Error: This relative module was not found
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- [Solved] Vue Project Error: Error: Cannot find module ‘webpack‘ Require stack以及Error: Rule can only have one resource so
- [Vue Run Error] Module build failed: Error: Couldn‘t resolve parser “babylon“
- [Solved] Vue binding dynamic inline style Error: transform:rotate()
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)
- Vue project Run Error: Syntax Error: Error: Cannot find module ‘less‘
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Module build failed TypeError this.getOptions is not a function at Object.loader
- [Solved] Vue Project Modify Page Error: CALL_AND_RETRY_LAST Allocation failed – JavaScript heap out of memory
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function