操作系统信息
阿里云ECS服务器,linux,4C/8G
Kubernetes版本信息
例如:v1.20.4。8节点。
容器运行时
docker
KubeSphere版本信息
v3.1.1。在线安装。全套安装。
问题是什么
devops流水线部署react项目。编译项目报错:
- yarn install
yarn install v1.22.17
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[¼] Resolving packages…
[2/4] Fetching packages…
error http-proxy-middleware@2.0.0: The engine “node” is incompatible with this module. Expected version “>=12.0.0”. Got “10.16.3”
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
script returned exit code 1
提示node.js版本过低,node.js为kubesphere平台devops工程自带的,请问如何升级node.js版本呢?