asdf-vm/asdf-nodejs

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

Open

#317 ouverte le 22 sept. 2022

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)Shell (163 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (987 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

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

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

Guide contributeur