Troubling in sharepoint framework development environment

Dora Yeh葉逸文 176 Reputation points
2021-12-01T03:48:02.987+00:00

Hi,there,
I have trouble in installing in sharepoint framework development environment, following set-up-your-development-environment tutorial and turn up to picture below.

153799-screenshot-2021-12-01-113855.png

Please help me to solve this problem , thanks a lot.

Best Regards,
Dora.

Microsoft 365 and Office SharePoint Server For business
Microsoft 365 and Office SharePoint For business Windows
Microsoft 365 and Office SharePoint Server Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2021-12-01T07:18:11.547+00:00

    Hi @Anonymous ,
    This issue might caused by slow Internet connection. You can use registry to improve. Please refer to following command.

    npm config set registry https://registry.npm.taobao.org  
    

    ----------------------
    update--------------------------

    I installed node.14.7.0 and run the following cmdlet

     md spfx-webpart  
     cd spfx-webpart  
     npm install gulp-cli yo @microsoft/generator-sharepoint --global  
    

    161086-image.png
    Then I stuck at rollbackFailedOptional: verb npm-session for a long time. Finally it run again and installed success.
    The process take me about 40 minutes


    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.



Your answer

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