bahmutov / npm-install

GitHub Action for install npm dependencies with caching without any configuration
https://github.com/marketplace/actions/npm-or-yarn-install-with-caching
650 stars 70 forks source link

figure out the source of the error #216

Closed bahmutov closed 7 months ago

bahmutov commented 7 months ago
saving NPM modules
saving npm cache failed with Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved., continuing...
bahmutov commented 7 months ago

Fixed in v1.9.0

fzaninotto commented 4 months ago

I'm still seeing this error when using your action. I use a very simple setup:

    unit-test:
        runs-on: ubuntu-latest
        steps:
            - name: Checkout
              uses: actions/checkout@v4
            - uses: bahmutov/npm-install@v1.9.0
            - name: Unit Tests
              run: make test-unit
              env:
                  CI: true

And I get the same error:

saving npm cache failed with Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved., continuing...

cf https://github.com/marmelab/react-admin/actions/runs/8946080813/job/24576130901

Is there something special to do to get the cache working with yarn on ubuntu?