How To Set Up Your SharePoint Framework Development Environment

This is an article about setting up your SharePoint Framework development environment on your machines. Let us see what we have to do.

Follow the steps and just run them as stated.
  • Install NodeJS
    Click on this link NodeJS LTS version and install the NodeJS solution on your machine.

    Node.js
  • Install Code Editor
    We will require a code editor for updating and packaging our code, so kindly install Visual Studio Code on your local machine.

    Node.js
  • Install Yeoman and gulp

    Install Yeoman as it will help you to package and is a perfect tool to preview your coding aspects. SharePoint client-side development tools include a Yeoman generator for creating new web parts on SharePoint premise and Online Servers. The generator provides a playground dev environment website called as Workbench to host the web parts for testing which is so easy for our code testing.

How to install

  1. Open Command Prompt on your machine.
  2. Run the following command

    npm install -g yo gulp

    Node.js

  3. Once the execution is completed, run the following code to install the SharePoint Framework Yeoman generator globally -
    npm install -g @microsoft/generator-sharepoint

    Node.js

  4. Once the above execution is completed, there might be scenarios where you want to switch between the different projects created using different versions of the SharePoint Framework Yeoman generator. In that case, you can install the generator locally as a development dependency in the project folder by executing the following command.

    npm install @microsoft/generator-sharepoint --save-dev

    Node.js

The above installation will take some time. Once all the above installations are completed, we will be ready with the new playground development.

That's it. We will learn new amazing features of SharePoint in my upcoming articles. Until then, keep learning!