⨯ EPERM: operation not permitted, link ...

新增区块链相关包后,项目在部署的时候报错,报错内容如下:

报错信息:

⨯ EPERM: operation not permitted, link 
'/Users/XXX/.cache/act/be662ca67b3f7553/hostexecutor/node_modules/bigint-buffer/build/node_gyp_bins/python3'
 -> 
'/Users/XXX/.cache/act/be662ca67b3f7553/hostexecutor/release/win-unpacked/resources/app.asar.unpacked/node_modules/bigint-
buffer/build/node_gyp_bins/python3' failedTask=build stackTrace=Error: ...

报错截图: 

 

修复:

构建版本中增加

USE_HARD_LINKS: false

部署文件内容如下,注意空格 

name: 持续构建
on: [pull_request]

jobs:
  持续构建:
    runs-on: macOS

    steps:
      - name: 检出代码
        uses: actions/checkout@v3
        
      - name: 计算哈希
        uses: seepine/hash-files@v1
        id: get-hash
        with: 
          patterns: |-
            package.json
            package-lock.json            

      - name: 保存缓存
        id: cache
        uses: actions/cache@v3
        with:
          path: node_modules
          key: ChainTradeClient-${{ steps.get-hash.outputs.hash }}

      - name: 安装依赖
        if: steps.cache.outputs.cache-hit != 'true'
        run: npm i --registry=http://registry.npmmirror.com

      - name: 单元测试
        run: npm run test

      - name: 构建版本
        env:
          # no hardlinks so dependencies are copied
          USE_HARD_LINKS: false
        run: npm run build-win

参考:

https://github.com/TypeStrong/ts-node/issues/422

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-03-26 16:04:01       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-26 16:04:01       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-26 16:04:01       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-26 16:04:01       18 阅读

热门阅读

  1. HGERR_code 22012 HGERR_msge division by zero HGERR_end[query_id

    2024-03-26 16:04:01       18 阅读
  2. 富格林:远离黑幕陷阱保证安全

    2024-03-26 16:04:01       19 阅读
  3. spring获取不到bean 报NoSuchBeanDefinitionException异常

    2024-03-26 16:04:01       19 阅读
  4. RedissonLock-tryLock-续期

    2024-03-26 16:04:01       21 阅读
  5. windows powershell连接linux 上传下载文件

    2024-03-26 16:04:01       20 阅读
  6. 后端常问面经

    2024-03-26 16:04:01       20 阅读
  7. Web学习笔记——网络安全

    2024-03-26 16:04:01       25 阅读
  8. WPF 界面命令绑定(MVVM结构)

    2024-03-26 16:04:01       17 阅读
  9. flutter 父组件调用子组件方法

    2024-03-26 16:04:01       16 阅读