Forum Discussion
Arun Aggarwal
Jan 29, 2019Copper Contributor
Error - Local gulp not found in project directory while running a spfx sample application
Hi I need some help in running a sample SharePoint Framework project. It used to be so easy to develop in Visual Studio since you only had to write some code but VS took care of everything else t...
- Jan 31, 2019
I had to delete the following files from the project folder for "npm install" to work correctly to install the dependencies.
1) package-lock.json,
2) yarn.lock &
3) shrinkwrap.yarn
Thanks to Andrew Connell for his advise. I tried everything what is available on the net and nothing helped. Hope it helps you.
Jan 29, 2019
Hi Arun,
I would start by deleting the node_modules folder on the project and run npm install again. Ensure you do this in the project folder as well - I remember I did this mistake once as I had 2 folders with almost identical names :)
SPFx has a dependency on gulp, so it should get installed when you run npm install
Hope this helps, but please reply with additional details if not
Joel
I would start by deleting the node_modules folder on the project and run npm install again. Ensure you do this in the project folder as well - I remember I did this mistake once as I had 2 folders with almost identical names :)
SPFx has a dependency on gulp, so it should get installed when you run npm install
Hope this helps, but please reply with additional details if not
Joel
- Arun AggarwalJan 29, 2019Copper Contributor
Hi Joel, I tried deleting node_modules folder but it did not help :-(. Any more suggestions.
Thanks
-Arun
- Jan 29, 2019Sorry, nothing other than checking if your machine is configured correctly.
Hope this can help:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment
- umer310Oct 25, 2021Copper ContributorI try this possibility nothie worked. still, this error is not gone '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.'