**
node 16.X 或更高版本 fibers 出错
**
网上找了好久都说是 node版本的问题 之前确实运行这个项目是没问题的 也确实是升级node之后才产生的这个问题;
报错
*node_modules\fibers\bin\win32-x64-93\fibers.node` is missing.
Cannot find module 'E:\project\node_modules\fibers\bin\win32-x64-93\fibers'*
根据路径打开 文件 确实没有发现这个文件
调试 发现加载fibers.node之前有fibers\bin\fibers.js文件
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
如果是其它包出错了就去找对应的包
下载 更改名称 (外面的文件夹名称是需要自己新建的 )
运行成功; 欧耶 所以推测其它相似报错的解决办法也是一样的;
一起加油 一起学习