Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported platform for @next/swc-win32-x64-msvc@11.1.2 #162

Closed
hsh2001 opened this issue Sep 28, 2021 · 2 comments
Closed

Unsupported platform for @next/swc-win32-x64-msvc@11.1.2 #162

hsh2001 opened this issue Sep 28, 2021 · 2 comments

Comments

@hsh2001
Copy link

hsh2001 commented Sep 28, 2021

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for @next/swc-win32-x64-msvc@11.1.2: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS: win32
npm ERR! notsup Valid Arch: x64
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64

@ArtiomTr
Copy link
Owner

Hello @hsh2001,

Looks like you're running your CI in linux environment, but @next/swc-win32-x64-msvc supports only windows platform. Try to change platform like this:

name: 'coverage'
on:
    pull_request:
        branches:
            - master
            - main
jobs:
    coverage:
# required platform ↓  
        runs-on: windows-latest
        if: "!contains(github.event.head_commit.message, '[skip ci]')"
        steps:
            - uses: actions/checkout@v1
            - uses: artiomtr/jest-coverage-report-action@v2.0-rc.1
              with:
                  github-token: ${{ secrets.GITHUB_TOKEN }}
                  #   threshold: 80 # optional parameter

@khuezy
Copy link

khuezy commented Feb 20, 2022

This issue looks to be resolved w/ the latest nextjs canary https://github.com/vercel/next.js/releases/tag/v12.1.1-canary.1
vercel/next.js#34481

It should work w/ linux os on Github Actions now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants