Comments (4)
Thanks.
This issue is related to pnpm#3744.
Because I use third party's registry globally, I need to setup same registry on GitHub Actions.
name: Deploy Blog
on:
push:
branches:
- main
jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: Use taobao registry
run: npm config set registry https://registry.npmmirror.com/
- name: Install dependencies
run: pnpm install --frozen-lockfile
# ... other action
from action-setup.
Can you try separating this block:
- name: Install pnpm
uses: pnpm/action-setup@v2 # I try both v2 or v2.2.2
with:
version: 7
run_install: true
into:
- name: Install pnpm
uses: pnpm/action-setup@v2 # I try both v2 or v2.2.2
with:
version: 7
run_install: false
- name: Install dependencies
run: pnpm install --recursive
and see if it's the same result?
from action-setup.
I try to remove run_install: true
name: Deploy Blog
on:
push:
branches:
- main
jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
# ... other action
Now it can run into Install dependencies, but it throws same error:
Run pnpm install --frozen-lockfile
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +575
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: /home/runner/.local/share/pnpm/store/v3
Virtual store is at: node_modules/.pnpm
Progress: resolved 575, reused 0, downloaded 10, added 9
WARN GET https://registry.npmjs.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.5.tgz error (ERR_PNPM_FETCH_404). Will retry in 10 seconds. 2 retries left.
Progress: resolved 575, reused 0, downloaded 53, added 50
Progress: resolved 575, reused 0, downloaded 12[6](https://github.com/plylrnsdy/plylrnsdy.github.io_source/actions/runs/3065265181/jobs/4949190343#step:5:7), added 122
Progress: resolved 5[7](https://github.com/plylrnsdy/plylrnsdy.github.io_source/actions/runs/3065265181/jobs/4949190343#step:5:8)5, reused 0, downloaded 167, added 165
Progress: resolved 575, reused 0, downloaded 1[8](https://github.com/plylrnsdy/plylrnsdy.github.io_source/actions/runs/3065265181/jobs/4949190343#step:5:9)4, added 183
Progress: resolved 575, reused 0, downloaded 244, added 242
Progress: resolved 575, reused 0, downloaded 278, added 276
Progress: resolved 575, reused 0, downloaded 318, added 318
Progress: resolved 575, reused 0, downloaded 422, added 420
WARN GET https://registry.npmjs.org/concat-map/download/concat-map-0.0.1.tgz error (ERR_PNPM_FETCH_404). Will retry in [10](https://github.com/plylrnsdy/plylrnsdy.github.io_source/actions/runs/3065265181/jobs/4949190343#step:5:11) seconds. 2 retries left.
Progress: resolved 575, reused 0, downloaded 506, added 504
Progress: resolved 575, reused 0, downloaded 564, added 564
Progress: resolved 575, reused 0, downloaded 571, added 571
WARN GET https://registry.npmjs.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.5.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.
Progress: resolved 575, reused 0, downloaded 572, added 572
Progress: resolved 575, reused 0, downloaded 573, added 573
WARN GET https://registry.npmjs.org/concat-map/download/concat-map-0.0.1.tgz error (ERR_PNPM_FETCH_404). Will retry in 1 minute. 1 retries left.
ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.5.tgz: Not Found - 404
No authorization header was set for the request.
Error: Process completed with exit code 1.
from action-setup.
Then it's not the fault of pnpm/action-setup
. It's either a pnpm
bug, a registry bug, or a package.json
bug.
from action-setup.
Related Issues (20)
- Build script fails with "Cannot augment module '_' with value exports because it resolves to a non-module entity."
- Duplicate message in error: in the package.json with the key "packageManager" HOT 1
- How does this compare to `run: corepack enable`? HOT 10
- `dest` not working HOT 1
- Could not read from remote repository due to renamed organization
- ENOENT: no such file or directory during self-install HOT 6
- Add support for `volta.pnpm` field HOT 1
- Update to Node.js v20 HOT 1
- should upgrade node16 to node20 HOT 1
- The action breaks the container environment in the openSUSE HOT 1
- Permission denied errors with github repo references in transitive deps HOT 1
- Add support for grabbing `version` from the `engines.pnpm` field HOT 2
- How to cache pnpm ? HOT 1
- README references old versions of pnpm
- Installing pnpm when the package.json isn't in the root directory HOT 3
- Enable Code Scanning & Address Code Quality Issues HOT 4
- `v2` not up to date HOT 5
- Invalid
- EACCES: permission denied when running in a container w/ non-default user
- node20 support HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-setup.