Share via

spfx install error

wave 20 Reputation points
2024-02-28T12:05:05.7666667+00:00

Hi teams, I followed the steps in the document to set up environment. The previous steps are fine. When I run following line of command, the error occurs.

npm install @microsoft/generator-sharepoint --global


It returns following error

npm ERR! Cannot read property 'pickAlgorithm' of null

Please help

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author

RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
2024-02-29T01:53:36.9166667+00:00

Hi @wave, We could fix the issue by clearing cache, please run following cmd

npm cache clear --force

---If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.