Sharepoint framework development environment setup issue

Surendra Patil 21 Reputation points
2022-03-05T12:04:07.08+00:00

Hi Team,

I am new in the SPFx development, I have installed the Node.js 16.14.0 and I have run the commands as per the https://learn.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment#install-nodejs. But, when I have run the following command it stuck.

npm install @microsoft/generator-sharepoint --global

180300-image.png

Kindly help me.

Thanks & Regards,
Surendra Patil

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

Answer accepted by question author
  1. Rob Windsor 2,006 Reputation points
    2022-03-06T12:57:43.937+00:00

    The current version of the SharePoint Framework only works on Node.js v12.13.0+ or v14.15.0+. It does not work on Node.js v16.x.

    180462-image.png

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,486 Reputation points Microsoft External Staff
    2022-03-07T02:31:05.677+00:00

    Hi @Surendra Patil ,
    Per my research, I do agree with RobWindsor-4651's answer. spfx doesn't support node.js 16.14.0. Here is the document about spfx support
    180474-image.png


    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.


    0 comments No comments

  2. Surendra Patil 21 Reputation points
    2022-03-08T18:45:10.293+00:00

    I have install the Nodejs 14, but now I got the following error. Kindly help me.

    181116-image.png


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.