0

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

1
  • Can you open command prompt and run npm list -g --depth=0? Can you share the output, please? Also, what version of node.js are you using? Commented Oct 10, 2021 at 23:54

3 Answers 3

1

Downgrade your NPM version:

npm install -g [email protected] 

This has worked for me.

0

During the installation of another package, I encountered the same problem, but the following command resolved it for me

npm cache clear --force
-1

The article below answered your question well. Pickalgorithm npm error

https://www.conteudopertinente.com.br/npm/pickalgorithm-npm-error/

2
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review Commented Feb 3 at 16:28
  • The answer to solving the issue is not just executing a command via ssh. This is a complex answer, where rich text and images elucidate the question. That's why I decided to share the link. I believe that if anyone had doubts about the issue at hand, by reading the article, their doubts will be completely resolved. Commented Feb 5 at 12:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.