cnpm / nodeinstall

Another node installer that bundle node with application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请求 tar.gz 地址错误

laibao101 opened this issue · comments

const arch = os.arch() === 'x64' ? 'x64' : 'x86';

错误:

Error: GET https://cdn.npmmirror.com/binaries/node/v16.15.1/node-v16.15.1-darwin-x86.tar.gz got 404

电脑:
mac m1 14寸

问题:
node < 16,os.arch() 返回 x64, 此时没有问题。
node >=16, os.arch() 返回 arm64, 此时就出现了上述错误。

pr welcome

commented

fixed by pr #25