Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
caizhehao opened this issue Feb 8, 2022 · 4 comments
Open

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

caizhehao opened this issue Feb 8, 2022 · 4 comments

Comments

@caizhehao
Copy link

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

@liuruij
Copy link

liuruij commented Mar 16, 2022

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

@imoyao
Copy link

imoyao commented Aug 6, 2022

一种不优雅的解决办法

可以看看这个:
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,然后放置到指定目录。

@yyljwyy
Copy link

yyljwyy commented Sep 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@yyljwyy @imoyao @caizhehao @liuruij and others