@microsoft/generato[email protected]
[email protected]
├── [email protected]
└── [email protected] 

it's showing these version but when I use gulp bundle it's giving error:

gulp : The term 'gulp' is not recognized as the name of a cmdlet, function, script file, or operable program. Check 
the spelling of the name, or if a path was included, verify that the path is correct and try again.

2 Answers 2

  1. First run this in powershell Set-ExecutionPolicy -ExecutionPolicy RemoteSigned and check Get-ExecutionPolicy and get like this....

enter image description here

  1. Next run this npm install gulp-cli yo @microsoft/generator-sharepoint --global

  2. Check the version of gulp by using gulp --v or gulp --version and get like this..

enter image description here

  1. and next gulp trust-dev-cert

and you can run deploy commands i.e., gulp build


You should not have both gulp and gulp-cli installed.

From the Exercise - Configure your SharePoint Framework development environment module of the Get started with the SharePoint Framework unit on Microsoft Learn.

Gulp CLI install instructions

For more detail see this blog post by Andrew Connell, Mea culpa - always install gulp-cli globally, not gulp.

  • then also it's showing same gulp command was not found
    – Kajal
    Sep 18 at 11:43
  • after uninstalling gulp now i have gulp cli 2.3.0
    – Kajal
    Sep 18 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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