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

[bug] cache not work in windows #187

Open
jcc1997 opened this issue Jul 18, 2023 · 0 comments
Open

[bug] cache not work in windows #187

jcc1997 opened this issue Jul 18, 2023 · 0 comments

Comments

@jcc1997
Copy link

jcc1997 commented Jul 18, 2023

it give log below:

Run bahmutov/npm-install@v1
running npm-install GitHub Action
trying to restore cached NPM modules
npm cache hit undefined
installing NPM dependencies using Yarn
yarn at "C:\npm\prefix\yarn.cmd"
C:\Windows\system32\cmd.exe /D /S /C "C:\npm\prefix\yarn.cmd --frozen-lockfile"
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "path@^0.12.[7](https://github.com/jcc1997/any-version-cep-demo/actions/runs/5582645113/jobs/10202144903#step:3:8)".
[4/4] Building fresh packages...
Done in 101.[9](https://github.com/jcc1997/any-version-cep-demo/actions/runs/5582645113/jobs/10202144903#step:3:10)0s.
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...
all done, exiting

yml

jobs:
  build:
    runs-on: windows-latest
    env:
      CHANNEL: stage

    strategy:
      matrix:
        node-version: [18.x]
    steps:
      - uses: actions/checkout@v3
      - name: Yarn Install
        uses: bahmutov/npm-install@v1

or did I config wrong?

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

1 participant