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.
Don Kirkham
Oct 26, 2021MVP
As Joel mentioned, it seems like you might be in the wrong folder. If you run the yo command and choose the option to create a folder for the project, you are left in the wrong folder. Make sure you run the gulp command from the same folder that package.json is located.
My recommendation is always to create the folder (mkdir), switch to that folder (cd), then run the yo command.
What version of SPFx are you using? I just ran the yo command and used the create folder command. The result was a project that was not properly created, so you might have helped uncover a bug!
My recommendation is always to create the folder (mkdir), switch to that folder (cd), then run the yo command.
What version of SPFx are you using? I just ran the yo command and used the create folder command. The result was a project that was not properly created, so you might have helped uncover a bug!