我正在尝试Nodejs
在Amazon linux
计算机上安装,我正在按照此文档安装节点https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on- ec2-instance.html但执行此命令时出现以下错误nvm install node
我该如何解决这个问题?任何帮助将非常感激。谢谢!
v18.0.0 is already installed.
node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v18.0.0` to unset it.
[ec2-user@ip-xx-xxx-xx-xx ~]$ node -e "console.log('Running Node.js ' + process.version)"
-bash: node: command not found
Run Code Online (Sandbox Code Playgroud)
我尝试运行这个nvm use --delete-prefix v18.0.0
但没有运气。