新公司新电脑,最强 M1 芯片 MAC,兴高采烈装环境:nvm、node、yarn…
然鹅,yarn install 装包时给了我重头一击…
背景
首先我用下面命令安装了 nvm
:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | bash
然后用 nvm
安装了 node
,
然后用下面命令安装了 yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
然后兴高采烈的 yarn install
。
报错
@ls-lint/ls-lint@1.9.2: The CPU architecture "arm64" is incompatible with this module.
竟然说不支持 M1 芯片!!!
赶快 Google,但并没有获取到任何有用的信息。。。
心想这下完了,但我并没放弃。
解决
折腾无数次后,在我绝望的卸载 nvm
后,重新从node
官网拿了最新安装包,再次尝试竟然成功了!
看来 M1 生态还需要时间成长呀!