我们使用 Azure Pipelines 和使用 Ubuntu 18.04 作为操作系统的构建代理。
\n我目前正在尝试将管道中的 Nodejs 版本从 16 更新到 18。通过使用Azure Pipelines 中的 NodeTool 任务和versionSpec: "18.x".
然而,在使用 Nodejs 之后,它提示我缺少依赖项:\nnode: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28\' not found (required by node)\\
我什至可以使用 docker 按照以下说明复制此行为
\ndocker pull ubuntu:18.04\ndocker run -it {IMAGE-ID}\n\n# console switches to TTY session for running container\xe2\x80\xa6\n\napt update\napt install curl\ncurl -fsSL https://deb.nodesource.com/setup_18.x | bash\napt-get install -y nodejs\n\n# checking the node version generates the error above\n\nnode -v\nRun Code Online (Sandbox Code Playgroud)\n这里的问题可能有点过分了,但我不习惯使用linux系统。
\n我可以轻松解决 Nodejs 的这种依赖关系吗?\n或者这里安装缺少的依赖关系的一般方法是什么? …