inflearn logo
강의

Course

Instructor

Developing a Tech Blog with React-Based Gatsby

[해결완료!!] Error: Something went wrong installing the "sharp" module

4710

scvd03

3 asked

2

Error

Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp-darwin-arm64v8.node'

 

Possible solutions:

- Install with the --verbose flag and look for errors: "npm install --ignore-scripts=false --verbose sharp"

- Install for the current runtime: "npm install --platform=darwin --arch=arm64 sharp"

- Consult the installation documentation: https://sharp.pixelplumbing.com/install

 

not finished open and validate gatsby-configs, load plugins - 0.127s

 

gatsby-config.js 

module.exports = {
  siteMetadata: {
    title: `Gatsby Default Starter`,
    description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
    author: `@gatsbyjs`,
  },
  plugins: [
    {
      resolve: 'gatsby-plugin-typescript',
      options: {
        isTSX: true,
        allExtensions: true,
      },
    },
    `gatsby-plugin-react-helmet`,
    // {
    //   resolve: `gatsby-source-filesystem`,
    //   options: {
    //     name: `contents`,
    //     path: `${__dirname}/contents`,
    //   },
    // },
    `gatsby-transformer-sharp`,
    `gatsby-plugin-sharp`,
    // this (optional) plugin enables Progressive Web App + Offline functionality
    // To learn more, visit: <https://gatsby.dev/offline>
    // `gatsby-plugin-offline`,
    `gatsby-plugin-emotion`,
  ],
}

 

try...

노드버전 16.0.0으로 업그레이드 후,  yarn add --platform=darwin --arch=arm64 sharp 해보았으나, 에러가 여전히 발생합니다. 

해결 방법이 있을까요??

그리고 좋은 강의 너무도 감사합니다!

 

해결완료하였습니다. 다른 분들에게 참고가 될 수 있을 거 같아서 남겨놓아요!

참고자료: https://github.com/gatsbyjs/gatsby/issues/20957 

 

gatsby blog Gatsby

Answer 2

0

devmeeple

같은 문제를 겪었습니다. 답변 공유해 주셔서 감사합니다.

0

ji5485

안녕하세요, scvd03님!

요새 질문 확인이 많이 늦어지는데 문제 해결하셨다니 정말 다행입니다

꼭 다른 분들에게 참고됐으면 좋겠습니다!

썸네일 이미지가 보이지 않습니다!

0

76

2

yarn build 시 오류가납니다..

0

265

1

이미지가 출력되지않아요ㅠㅠ

0

412

2

프로젝트 명 무엇으로 작성하였나요?

0

702

1

섹션3 MD파일을 사용하기 위한 라이브러리 세팅하기에서

0

484

1

ModuleNotFoundError: Module not found: Error: Can't resolve 'react-helmet' 에러

0

1210

2

gatsby-node.js의 기존코드

0

821

2

gatsby command 찾기 실패

0

709

1

Cannot query field "fields" on type "MarkdownRemark". error 발

0

604

1

13강까지 들었는데, 프로필 이미지와 썸네일 이미지가 잘 뜨질 않습니다.

0

531

1

[17강 25강] Cannot query field "html" on type "MarkdownRemark" 오류

1

629

1

쿼리오류 Field "thumbnail" must not have a selection...

1

852

1

타입스크립트를 설정할 때 jsxPragma 옵션을 뺀 이유는 무엇인가요?

1

585

1

마지막 배포 부분 질문드립니다!

1

617

1

'[username]/[username].github.io' -> 'username/reponame'

0

337

0

IntersectionObserver deploy( gatsby build) 시 오류(자답)

1

387

1

PostHead.tsx BackgroundImage 동작오류(자답)

1

288

0

19강 인피니티 스크롤 IntersectionObserver 코드 위치 수정이 필요합니다.

1

402

1

썸네일 이미지 제작 및 학습 방법 관련 문의

1

436

1

배포 후 포스트 업로드 방법

1

378

1

배포 질문이요!

1

512

1

gatsby develop 오류

1

931

1

깃허브 레퍼지토리 질문드려요

1

339

1

특정 게시글을 클릭하여 상세 페이지로 넘어가는 과정과 SPA에 관한 질문

1

280

1