i have downloaded a modern webpart spfx source code from git hub and installed the **git ** inside the solder but unable to run . please help me

and also i have installed the webpart with the same name and copied the source files, but that also didn't work.


Inside git source code you will find the readme.txt file. Please read this file and install all prerequisite that mentioned on file. After installation you have to execute below command one by one on console.

gulp trust-dev-cert
gulp server

Now you can preview spfx web part as SharePoint workbench

You can refer this link


Make sure you sure you have git and nmp installed on your local computer. Than follow these steps to run it on workbench: ( You have to run these commands one by one in the same order)

  1. Clone the repository :

Command: git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY

  1. Install all dependencies:

Command: npm install

  1. Now execute the commands as mentioned by @Bharat

Hope that helps!

  • i have installed the npm, but getting errors node_modules\@microsoft\sp-loader\node_modules\@types\react\index.d.ts(3591,24): error TS2694: Namespace 'React' has no exportedmember 'SVGProps'. it belong to the npm package . and over there 470+ errors – JishinK Jan 24 '18 at 7:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.