node 16.X 或更高版本 fibers 出错 is missing.

**

node 16.X 或更高版本 fibers 出错

** 网上找了好久都说是 node版本的问题 之前确实运行这个项目是没问题的 也确实是升级node之后才产生的这个问题;

报错

代码语言:javascript

复制

*node_modules\fibers\bin\win32-x64-93\fibers.node` is missing. 
Cannot find module 'E:\project\node_modules\fibers\bin\win32-x64-93\fibers'*

Jetbrains全家桶1年46,售后保障稳定 

根据路径打开 文件 确实没有发现这个文件 调试 发现加载fibers.node之前有fibers\bin\fibers.js文件

代码语言:javascript

复制

var modPath = path.join(__dirname, 'bin', process.platform+ '-'+ process.arch+ '-'+ process.versions.modules, 'fibers');
try { 
   
    fs.statSync(modPath+ '.node');
} catch (ex) { 
   
    // No binary!
    console.error(
        '## There is an issue with `node-fibers` ##\n'+
        '`'+ modPath+ '.node` is missing.\n\n'+
        'Try running this to fix the issue: '+ process.execPath+ ' '+ __dirname.replace(' ', '\\ ')+ '/build'
    );
    throw new Error('Missing binary. See message above.');

我就想着 既然没有这个文件我就去自己创建一个 https://github.com/sass/node-sass/releases 如果是其它包出错了就去找对应的包

在这里插入图片描述

在这里插入图片描述

下载 更改名称 (外面的文件夹名称是需要自己新建的 )

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值