I'm trying to create a new WebPart using the directions here. When I try to install the yeoman generator @microsoft/sharepoint it attempts to reference a github repository (microsoft/sharepoint) that doens't exist or is private.

Is there a workaround for this?


  • Did you set up dev environment properly?. Refer below link dev.office.com/sharepoint/docs/spfx/…
    – Amit
    Commented Dec 7, 2016 at 6:09
  • In addition to the comments below about setting up the environment, the install of the generator is "npm i -g @microsoft/generator-sharepoint" while creating a new webpart using the generator is "yo @microsoft/sharepoint" Commented Dec 13, 2016 at 22:07

1 Answer 1


Do you make sure below steps are performed.

Download and npm package

Install NodeJS Long Term Support (LTS) v4.x.x version.

After installing node, make sure you are running V3 of npm by running the following command:

npm install -g npm@3

Install windows build tools.

npm install -g --production windows-build-tools

Enter the following command to install Yeoman and gulp:

npm install -g yo gulp

Enter the following command to install the Yeoman SharePoint generator:

npm install -g @microsoft/generator-sharepoint

If there are any errors in above steps it means your development environment is not setup correctly

Ref link

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.