asdf-vm / asdf-vm/asdf-nodejs

bug: No matching version found for node-darwin-arm64@14.10.0

Open
#317 4 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Shell
Stars
989
Forks
162
PR merge metrics
No merged PRs in 30d

Description

### Describe the Bug

While working on a M1 and a legacy project I'm running into an error while trying to `npm ci`. I'm getting
```
No matching version found for node-darwin-arm64@14.10.0.
```

Well that makes sense because there is [no node-darwin-arm64 version 14.10.0](https://www.npmjs.com/package/node-darwin-arm64).

`package.lock` doesn't include it. `npm list node-darwin-arm64` shows:
```
npm list node-darwin-arm64
pqi@0.0.0 /Users/sean.lawrenz/Documents/path
└── (empty)
```
So where is this coming from?

I try a different approach and open my terminal in rosetta.

```
arch
i386

node -v
v14.16.1

npm -v
6.14.12

node -p process.arch
x64
```

Still get the above error. There is a [thread where nvm have fixed this issue](https://github.com/Azure/azure-functions-nodejs-worker/issues/386). I'm hoping this is a wired issue with asdf.

### Steps to Reproduce

On an M1 machine, try to run `npm ci` on a legacy project that using node 14.

### Expected Behaviour

It shouldn't try to grab a version of `node-darwin-arm64` that doesn't exist.

### Actual Behaviour

It does try to grab a version of `node-darwin-arm64` that doesn't exist.

### Environment

```shell
OS:
Darwin localadp165smbp.lan 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T6000 arm64

SHELL:
zsh 5.8.1 (x86_64-apple-darwin21.0)

ASDF VERSION:
v0.10.2-7e7a1fa

ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/Users/sean.lawrenz/.asdf

ASDF INSTALLED PLUGINS:
nodejs https://github.com/asdf-vm/asdf-nodejs.git master f9957f3
ruby https://github.com/asdf-vm/asdf-ruby.git master c841ccd
```

### asdf plugins affected (if relevant)

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.