install项目的时候发现淘宝源过期了,记录一下新地址
npm config set registry https://registry.npmmirror.com
查看源
npm config get registry
安装的时候发现报错提示:
[2/4] Fetching packages... error commander@12.0.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "17.0.0" error Found incompatible module.
要求node版本大于或等于18,但是换成18后又提示要小于18,暂时忽略版本检查(不是长久之计)
忽略node版本:yarn config set ignore-engines true
忽略引擎: yarn config set ignore-engines true
在执行 yarn install