As instructed within the Setting up your development environment guidance material. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment
I've installed yeoman:
npm install yo --global
I've reached the last step, to install the sharepoint generator:
npm install @microsoft/generator-sharepoint --global
I'm getting an error reported in the terminal.
npm ERR! Cannot read property 'pickAlgorithm' of null