node版本 16.17 所以装不了node-sass 4.0.0版本
"node-sass": "6.0.1",
"sass-loader": "10.2.0",
ERROR in ./src/pages/index/index.vue?vue&type=style&index=0&id=57280228&lang=scss&scoped=true&
Module build failed: Error: Unknown keyword formatMinimum
at get (D:\Hanson\uniapp-framework\node_modules_ajv-keywords@5.1.0@ajv-keywords\dist\index.js:25:15)
at ajvKeywords (D:\Hanson\uniapp-framework\node_modules_ajv-keywords@5.1.0@ajv-keywords\dist\index.js:10:13)
at Object.<anonymous> (D:\Hanson\uniapp-framework\nodemodules\@dcloudio_vue-cli-plugin-uni@2.0.2-3070320230222001@@dcloudio\vue-cli-plugin-uni\packages\sass-loader\node_modules\schema-utils\dist\validate.js:56:26)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (D:\Hanson\uniapp-framework\nodemodules\@dcloudio_vue-cli-plugin-uni@2.0.2-3070320230222001@@dcloudio\vue-cli-plugin-uni\packages\sass-loader\node_modules\schema-utils\dist\index.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (D:\Hanson\uniapp-framework\nodemodules\@dcloudio_vue-cli-plugin-uni@2.0.2-3070320230222001@@dcloudio\vue-cli-plugin-uni\packages\sass-loader\dist\index.js:10:43)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (D:\Hanson\uniapp-framework\nodemodules\@dcloudio_vue-cli-plugin-uni@2.0.2-3070320230222001@@dcloudio\vue-cli-plugin-uni\packages\sass-loader\dist\cjs.js:3:16)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at D:\Hanson\uniapp-framework\node_modules_webpack@5.75.0@webpack\lib\ProgressPlugin.js:412:9
at Hook.eval [as call] (eval at create (D:\Hanson\uniapp-framework\node_modules_tapable@2.2.1@tapable\lib\HookCodeFactory.js:19:10), <anonymous>:7:1)
at NormalModule._doBuild (D:\Hanson\uniapp-framework\node_modules_webpack@5.75.0@webpack\lib\NormalModule.js:809:24)
at NormalModule.build (D:\Hanson\uniapp-framework\node_modules_webpack@5.75.0@webpack\lib\NormalModule.js:963:15)
at D:\Hanson\uniapp-framework\node_modules_webpack@5.75.0@webpack\lib\Compilation.js:1371:12
at NormalModule.needBuild (D:\Hanson\uniapp-framework\node_modules_webpack@5.75.0@webpack\lib\NormalModule.js:1253:32)
at Compilation._buildModule (D:\Hanson\uniapp-framework\node_modules_webpack@5.75.0@webpack\lib\Compilation.js:1352:10)
at D:\Hanson\uniapp-framework\node_modules_webpack@5.75.0@webpack\lib\util\AsyncQueue.js:303:10
at Hook.eval [as callAsync] (eval at create (D:\Hanson\uniapp-framework\node_modules_tapable@2.2.1@tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncQueue._startProcessing (D:\Hanson\uniapp-framework\node_modules_webpack@5.75.0@webpack\lib\util\AsyncQueue.js:293:26)
at AsyncQueue._ensureProcessing (D:\Hanson\uniapp-framework\node_modules_webpack@5.75.0@webpack\lib\util\AsyncQueue.js:280:12)
at processImmediate (node:internal/timers:466:21)
@ ./src/pages/index/index.vue 5:0-90
@ ./src/pages.json 69:21-89
@ ./src/main.js 8:0-19
插班生小明明 (作者)
有解决 要解决必须要降node版本(好像14.0可以装node-sass 4.0.0版本) 但是其它项目不允许降那么低的版本 dog ri de
2023-04-10 11:01