**
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'*
根据路径打开 文件 确实没有发现这个文件 调试 发现加载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 如果是其它包出错了就去找对应的包
在这里插入图片描述
下载 更改名称 (外面的文件夹名称是需要自己新建的 )