Coder Social home page Coder Social logo

Comments (1)

fz6m avatar fz6m commented on May 18, 2024

你贴的这一次构建目测是 github action 不稳定下载依赖挂了导致的,因为你指定的 npmrc 是从 cnpm 下,没官方源快,重试一次应该就好了。

试一下这个吧:

      - name: Checkout 🛎️
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      # 如果用的不是 pnpm ,就不需要这一步
      - name: Install pnpm
        uses: pnpm/action-setup@v3
        with:
          run_install: false
          version: 9 # 这一行可以不指定,但是需要在 `package.json#packageManager` 指定版本
      
      - name: Use Node.js v20
        uses: actions/setup-node@v3
        with:
          node-version: 20.x
          cache: 'pnpm' # 如果是其他的包管理器,就填成对应的名字
      
      - name: Install dependencies
        run: pnpm i

      - name: Build
        run: |
          pnpm build

from umi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.