To publish and install packages to and from the public npm registry or your company's npm Enterprise registry, you must install Node.js and the npm command line interface using either a Node version manager or a Node installer. We strongly recommend using a Node version manager like nvm to install Node.js and npm.
nvm install yarn, With your instructions using nvm, I have tried out different versions of node.js, and also tried npm (analogous to yarn, which actually means yarn install, I used npm install). However, Version 11.14 was not accepted, it exited with “*** Please use node >=8 and <11”.