买了一台新电脑,从 GitHub 克隆了我的项目,然后运行,npm install
但安装时出现很多错误,所以现在我运行gatsby develop
并收到以下错误消息。请帮助我
错误 #10226 配置
找不到在“C:\Users\Administrator\Desktop\Projects\IamJude\gatsby-config.js”中声明的“gatsby-plugin-sharp”插件。
尝试在 C:\Users\Administrator\Desktop\Projects\IamJude\plugins\gatsby-plugin-sharp 中寻找本地插件。
尝试在以下路径中查找已安装的软件包:
- C:\Users\Administrator\Desktop\Projects\IamJude\node_modules\gatsby\dist\bootstrap\load-themes\node_modules\gatsby-plugin-sharp
- C:\Users\Administrator\Desktop\Projects\IamJude\node_modules\gatsby\dist\bootstrap\node_modules\gatsby-plugin-sharp
- C:\Users\Administrator\Desktop\Projects\IamJude\node_modules\gatsby\dist\node_modules\gatsby-plugin-sharp
- C:\Users\Administrator\Desktop\Projects\IamJude\node_modules\gatsby\node_modules\gatsby-plugin-sharp
- C:\Users\Administrator\Desktop\Projects\IamJude\node_modules\gatsby-plugin-sharp
- C:\Users\Administrator\Desktop\Projects\node_modules\gatsby-plugin-sharp
- C:\Users\Administrator\Desktop\node_modules\gatsby-plugin-sharp
- C:\Users\Administrator\node_modules\gatsby-plugin-sharp
- C:\Users\node_modules\gatsby-plugin-sharp
- C:\node_modules\gatsby-plugin-sharp
未完成打开并验证 gatsby-configs - 1.329s
错误
上述错误发生在组件中:in CLI (created by ConnectedCLI) in ConnectedCLI in StoreStateProvider in App
React 将尝试使用您提供的错误边界 App 从头开始重新创建此组件树。
错误
警告:应用程序:错误边界应实现 getDerivedStateFromError()。在该方法中,返回状态更新以显示错误消息或回退 UI。
C:\Users\Administrator\AppData\Roaming\npm\node_modules\gatsby-cli\node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53
throw ex; ^
TypeError:无法在 createPendingActivity (C:\Users\Administrator\AppData\Roaming\npm\node_modules\gatsby-cli\lib\reporter\redux\utils.js:25:54)读取未定义的属性“活动” :\Users\Administrator\AppData\Roaming\npm\node_modules\gatsby-cli\lib\reporter\redux\internal-actions.js:114:51)
在 C:\Users\Administrator\AppData\Roaming\npm\node_modules\gatsby-cli\node_modules\redux\lib\redux.js:483:35 在prematureEnd (C:\Users\Administrator\AppData\Roaming\npm\node_modules \gatsby-cli\lib\reporter\catch-exit-signals.js:39:38) 在 Reporter.panic (C:\Users\Administrator\AppData\Roaming\npm\node_modules\gatsby-cli\lib\reporter\reporter .js:72:42) 在进程中。(C:\Users\Administrator\AppData\Roaming\npm\node_modules\gatsby-cli\lib\index.js:79:21) 在 process.emit (events.js:327:22) 在 processEmit (C:\Users \Administrator\AppData\Roaming\npm\node_modules\gatsby-cli\node_modules\signal-exit\index.js:161:32) 在 process.emit (C:\Users\Administrator\AppData\Roaming\npm\node_modules\gatsby -cli\node_modules@turist\fetch\dist\sourcemap-register.js:926:21) 在 processEmit [as emit] (C: