티스토리 뷰

728x90

메타마스크 익스텐션 소스코드를 포크해서 실행해보려고 했는데, 실행환경을 노드 버전 14로 맞춰주어야 했습니다. M1 macbook에서는 node v16 미만 버전에선 패키지 인스톨 과정에서 종종 에러가 발생하는 것 같습니다.

메타마스크 안내에 따라 프로젝트 셋업을 진행하는데 아래와 같은 에러가 발생하였습니다.

$ yarn setup

error An unexpected error occurred: "https://registry.yarnpkg.com/cid-tool/-/cid-tool-0.3.0.tgz: incorrect data check".

info If you think this is a bug, please open a bug report with the information provided in "/Users/hyun/codestates/BEB-ADVANCED/metamask-extension/yarn-error.log".

info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


기존에 설치되어 있는 노드 v14를 지우고, 인텔 칩 소프트웨어도 돌아가도록 arch 명령어로 터미널을 전환합니다. 그리고 다시 노드 v14를 인스톨한 후 프로젝트 셋업을 진행했더니 문제가 해결되었습니다.

$ nvm uninstall 14
$ arch -x86_64 zsh 
$ nvm install 14


참고)
https://stackoverflow.com/questions/65342769/install-node-on-m1-mac/67907214#67907214

Install Node on M1 Mac

Kind of a noob here on questions about binaries, processors and how that all works together: I have a new Mac with an M1 chip, and want to install Node. I'm used to do this with Homebrew. Now, if I

stackoverflow.com

https://subicura.com/mac/dev/apple-silicon.html#apple-silicon-m1

패키지 관리자 (Apple Silicon/M1)

패키지 관리자 설정 방법을 알아봅니다.

subicura.com

'웹 개발 > Node' 카테고리의 다른 글

eslint, prettier 세팅(nextjs)  (0) 2022.01.02
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함