节点模块中的错误:致命错误 LNK1107:无效或损坏的文件:无法在 0x2BE03E 处读取

Error in node module: fatal error LNK1107: invalid or corrupt file: cannot read at 0x2BE03E

我安装了 Gatsby 并开始使用 Casper Gatsby Starter Kit

我确实添加了它,npm install 成功了。当我尝试一个新项目时,我不断出错。我以为这是因为我的互联网连接。

经过多次重试,我终于得到了这个一致的错误: 致命错误 LNK1107:文件无效或损坏:无法在 0x2BE03E 处读取

C:\Users\<USER>\.node-gyp.5.0\x64\node.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2BE03E C:\<PROJECT>\node_modules\gatsby-plugin-sharp\node_modules\sharp\build\libvips-cpp.vcxproj

我删除了 .node-gyp 的内容(在用户文件夹中找到)并且它起作用了。