小编Nid*_*iya的帖子

GitHub 操作在 npm ci 上失败

我有 git 操作来运行 prettier(代码格式化程序)。下面是format.ymlgit操作的文件。

name: Format code with prettier
on:
  push:
    branches-ignore:
      - master
jobs:
  format:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      # Install NPM dependencies, cache them correctly
      - name: Run prettier
        run: |
          npm ci
          npm run prettier-check
Run Code Online (Sandbox Code Playgroud)

下面列出了我收到的错误。

npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old …
Run Code Online (Sandbox Code Playgroud)

github npm npm-ci github-actions

6
推荐指数
1
解决办法
7204
查看次数

标签 统计

github ×1

github-actions ×1

npm ×1

npm-ci ×1