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

Attempting to download... Not found in manifest. Falling back to download directly from Node #1017

Open
2 of 5 tasks
jcrgaprende opened this issue Apr 24, 2024 · 10 comments
Open
2 of 5 tasks
Labels
bug Something isn't working

Comments

@jcrgaprende
Copy link

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

image

Action version:
V4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Node v14

@jcrgaprende jcrgaprende added bug Something isn't working needs triage labels Apr 24, 2024
@sujanbasnet
Copy link

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
image image

@jcrgaprende
Copy link
Author

@sujanbasnet i test it, and tell you if works for me. thanks

@yairlopez-aprende
Copy link

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!

@bilalbokharee
Copy link

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:

image

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."

@yairlopez-aprende
Copy link

yairlopez-aprende commented Apr 25, 2024

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.

image

@bilalbokharee
Copy link

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.

@yairlopez-aprende
Copy link

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.

@yairlopez-aprende
Copy link

yairlopez-aprende commented Apr 25, 2024

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'
         
image

@HarithaVattikuti
Copy link
Contributor

Hello @jcrgaprende
Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.

@sujanbasnet
Copy link

sujanbasnet commented Apr 26, 2024

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!

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants