Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.
Discussion options

You must be logged in to vote

클라우드 스킬 챌린지 한정인데요, package.json 파일이 npm 7.x 버전 이상에서 작성이 되어 생기는 문제입니다. 따라서, 로컬 개발 환경에서는

npm install -g npm

명령어를 써서 일단 npm 모듈을 7.x 이상으로 업데이트 하시구요, 그다음에 npm install 하시고, 그다음에 npm run build 해 보시면 로컬에서는 문제 없이 잘 될 거예요. 방금 저도 그렇게 했음. 맥 카탈리나 사용자.


문제는 저 깃헙 액션인데요, 여기서는 깃헙 액션을 조금 수정하셔야 합니다. 기본으로 node 버전이 14.x 이고, npm 버전이 6.x 여서 생기는 문제거든요. 마찬가지로 npm 버전을 7.x 이상으로 업데이트 하셔야 합니다. 아래와 같이 Build And Devploy 스텝을 찾아서 수정해 보세요. 깃헙 액션 워크플로우 파일은 .github/workflows 디렉토리 아래 azure-static-web-apps-xxxx-xxxx-xxxx.yml 와 같은 형태로 있습니다.

...
      - name: Build And Deploy
        id: builddeploy
        uses: Azure/static-web-apps-deploy@v1
        ### 👇👇👇👇 아래 라인을 넣어 보세요 ###
        env:
          CUSTOM_BUILD_COMMAND: "npm…

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
6 replies
@glossyyoon
Comment options

@kooljay82
Comment options

@glossyyoon
Comment options

@kooljay82
Comment options

@glossyyoon
Comment options

Comment options

You must be logged in to vote
7 replies
@Yenowme
Comment options

@kooljay82
Comment options

@Yenowme
Comment options

@justinyoo
Comment options

@Yenowme
Comment options

Answer selected by glossyyoon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
csc 클라우드 스킬 챌린지 app-vue Vue 앱
5 participants