简体   繁体   中英

"gatsby develop" cannot run in Mac M1

Iam using gatsby 3.1.2 version with strapi as CMS, were i could not able to run gatsby develop and it is throwing this below mentioned error. Also attached the screenshot from terminal.

ERROR 

Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema.
 - options should be one of these:
   object { resourceRegExp, contextRegExp? } | object { checkResource }
   Details:
    * options misses the property 'resourceRegExp'. Should be:
      RegExp
      -> A RegExp to test the request against.
    * options misses the property 'checkResource'. Should be:
      function
      -> A filter function for resource and context.

在此处输入图像描述

System Informations:

  • Gatsby CLI version: 4.0.0
  • Gatsby version: 3.14.6
  • Node version: v14.18.0
  • NPM version: 6.14.15

In case it helps anyone, prior to this error (where it just doesn't run, without throwing any errors or clues) I had a hard time with npm install , but I was able to fix that by running the following:

brew reinstall vips
xcode-select --install
brew install gcc
brew reinstall vips
brew info vips
npm i

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM