setup-node icon indicating copy to clipboard operation
setup-node copied to clipboard

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

Open jcrgaprende opened this issue 10 months ago • 10 comments

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
  • [X] macOS
  • [ ] Windows

Runner type:

  • [X] Hosted
  • [ ] Self-hosted

Tools version:

Node v14

jcrgaprende avatar Apr 24 '24 19:04 jcrgaprende

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

sujanbasnet avatar Apr 25 '24 06:04 sujanbasnet

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

jcrgaprende avatar Apr 25 '24 13:04 jcrgaprende

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!

yairlopez-aprende avatar Apr 25 '24 14:04 yairlopez-aprende

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

bilalbokharee avatar Apr 25 '24 14:04 bilalbokharee

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

yairlopez-aprende avatar Apr 25 '24 14:04 yairlopez-aprende

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.

bilalbokharee avatar Apr 25 '24 14:04 bilalbokharee

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 avatar Apr 25 '24 15:04 yairlopez-aprende

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

yairlopez-aprende avatar Apr 25 '24 16:04 yairlopez-aprende

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

HarithaVattikuti avatar Apr 25 '24 21:04 HarithaVattikuti

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"

sujanbasnet avatar Apr 26 '24 04:04 sujanbasnet

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 avatar May 22 '24 06:05 priya-kinthali

@priya-kinthali It's work well

jcrgaprende avatar May 22 '24 15:05 jcrgaprende