vue-typescript-admin-template icon indicating copy to clipboard operation
vue-typescript-admin-template copied to clipboard

node 16以上无法正常运行,报错

Open caizhehao opened this issue 3 years ago • 4 comments

node 16以上无法正常运行,报错 {"message":"Not Found","error":{}}

caizhehao avatar Feb 08 '22 06:02 caizhehao

image 问题:启动报错,弹出microsoft visual c++ runtime library弹出框。 复现: 1、打开项目,运行yarn serve 2、mock运行中报错“npm run mock exited with code 1” 3、弹出弹窗,选择“重试” 4、结束进程 原因查找: 1、nodejs v16.x 或更高版本不支持 Fibers

liuruij avatar Mar 16 '22 01:03 liuruij

一种不优雅的解决办法

可以看看这个: node 16.X 或更高版本 fibers 出错 is missing._我叫丨木木的博客-CSDN博客

[1] `~\node_modules\fibers\bin\win32-x64-93\fibers.node` is missing.
[1]
[1] Try running this to fix the issue: C:\Program Files\nodejs\node.exe ~\node_modules\fibers/build
[1] Error: Cannot find module '~\node_modules\fibers\bin\win32-x64-93\fibers'
[1] Require stack:


[1]     at runSyncOrAsync (~\node_modules\loader-runner\lib\LoaderRunner.js:120:4)
[1]     at iterateNormalLoaders (~\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
[1] ~\node_modules\fibers\fibers.js:23
[1]             throw new Error('Missing binary. See message above.');
[1]                   ^
[1]
[1] Error: Missing binary. See message above.
[1]     at Object.<anonymous> (~\node_modules\fibers\fibers.js:23:9)
[1]     at Module._compile (node:internal/modules/cjs/loader:1105:14)
[1]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)

去下载win32-x64-93_binding.node并重命名为fibers.node,然后放置到指定目录。

imoyao avatar Aug 06 '22 01:08 imoyao

如果不想搞到脱发,建议使用NODE 14

yyljwyy avatar Sep 16 '23 06:09 yyljwyy