'nvm is not compatible with the npm config "prefix" option: currently set to "" Run `nvm use --delete-prefix v18.1.0` to unset it

I am using ssh to connect Github with AWS EC2 and I am trying to install the node so I can run my server in VM. but it is showing me an error says

"nvm is not compatible with the npm config "prefix" option: currently. set to ""Run nvm use --delete-prefix v18.1.0 to unset it."



Solution 1:[1]

This isn't really a solution, but I got around the issue by changing to an older version of Node (v15 rather than the default v18) that doesn't require the latest GLIBC.

Run nvm install 15 and nvm use 15

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Taylor Vance