diff --git a/启动说明.txt b/启动说明.txt index 272fb8e..2aaec1c 100644 --- a/启动说明.txt +++ b/启动说明.txt @@ -18,4 +18,26 @@ pnpm run dev 打包: -pnpm run build:prod \ No newline at end of file +pnpm run build:prod + + + +如果报错(npm启动Taro框架报错) +Error: The specified module could not be found. +\\?\C:\Users\admin\Desktop\app\node_modules\@tarojs\plugin-doctor-win32-x64-msvc\taro-doctor.win32-x64-msvc.node + at Object.Module._extensions..node (node:internal/modules/cjs/loader:1651:18) + at Module.load (node:internal/modules/cjs/loader:1275:32) + at Function.Module._load (node:internal/modules/cjs/loader:1096:12) + at Module.require (node:internal/modules/cjs/loader:1298:19) + at require (node:internal/modules/helpers:182:18) + at Object. (C:\Users\admin\Desktop\app\node_modules\@tarojs\plugin-doctor\js-binding.js:72:29) + at Module._compile (node:internal/modules/cjs/loader:1529:14) + at Module._extensions..js (node:internal/modules/cjs/loader:1613:10) + at Object.newLoader [as .js] (C:\Users\admin\Desktop\app\node_modules\pirates\lib\index.js:134:7) + at Module.load (node:internal/modules/cjs/loader:1275:32) { + code: 'ERR_DLOPEN_FAILED' +} + +需安装插件 +直接在Microsoft Visual C++ Redistributable latest supported downloads下载最新的VC++插件并安装,问题直接解决。 +https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-supported-redistributable-version \ No newline at end of file