setup-node
setup-node copied to clipboard
Attempting to download... Not found in manifest. Falling back to download directly from Node
Description: When you want to download the version of Node, it fails when trying to do so, there are no more logs for the error
Action version: V4
Platform:
- [ ] Ubuntu
- [X] macOS
- [ ] Windows
Runner type:
- [X] Hosted
- [ ] Self-hosted
Tools version:
Node v14
I got the same error when defining a specific node version to use with node-version
. But it was able to download the same version when I used node-version-file
.
node-version | node-version-file |
---|---|
@sujanbasnet i test it, and tell you if works for me. thanks
Hi @sujanbasnet, thanks for the help!
How are you using the action exactly (it isn't visible in your screenshot)?
Are you using both node-version: '14.21.3'
and node-version-file: '14.21.3'
for example or just node-version-file: '14.21.3'
?
Thanks!
Hi. I also have a similar error. This is my job:
build_macos_x64:
name: macOS (x86_64)
env:
npm_config_arch: x64
runs-on: macos-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
ref: 'main'
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 'lts/fermium' #Resolves to v14.21.3
Here is the screenshot of failing step:
Notice that npm_config_arch
has a value set to x64
and it fails saying
"Error: Unable to find Node version 'v14.21.3' for platform darwin and architecture arm64."
Exactly @bilalbokharee , I've noticed the same thing, and the Github repo where it pulls the package from does not have node v14.21.3 for arm64: https://github.com/actions/node-versions/releases?expanded=true&page=1&q=14.21.3
It looks like we'll either have to download/install the package from the node.js website or upgrade to a newer version of node.
Yeah I agree but the point is that I am not asking it to download for arm64. I want to download for x64, and this was working up until yesterday. Now it is automatically assuming the request is for arm64.
Yeah, that's because macos-latest is now macos-14 which uses arm64 architecture, if you use macos-12 it should work fine.
This is exactly my issue, but I need macos-latest(14) to use Xcode 15.
Downgrading to macos-12, which was macos-latest until this week should solve your issue.
I have found a simpler solution that seems to work ( haven't actually built my App yet), at least I am able to install Node.js v14 on macos-14.
Since the arm64 package isn't available I went ahead and set architecture: 'x64'
, it looks like it will work :)
build:
runs-on: macos-14
steps:
- uses: actions/setup-node@v4
with:
node-version: '14.17.3'
architecture: 'x64'
Hello @jcrgaprende Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.
Hi @sujanbasnet, thanks for the help!
How are you using the action exactly (it isn't visible in your screenshot)? Are you using both
node-version: '14.21.3'
andnode-version-file: '14.21.3'
for example or justnode-version-file: '14.21.3'
?Thanks!
Welcome! I replaced node-version
with node-version-file
and provided the package.json
.
- uses: actions/setup-node@v4
with:
# node-version: "18.8.2"
node-version-file: "clients/web/storefront/package.json"
Hello there 👋,
Thank you for providing the details. We appreciate your patience and cooperation.
To utilize the x64 architecture on macos-latest
, please adjust your workflow configuration as follows:
- uses: actions/setup-node@v4
with:
node-version: "14.17.3"
architecture: 'x64'
Please note if you're aiming to use an arm64 package, an upgrade is necessary. This is due to the lack of support for arm64 packages for Node 14 on the official Node.js website. Feel free to try this solution and let us know if any issues arise.
@priya-kinthali It's work well