SharePoint Framework Development (Error - Local gulp not found in project directory)

Copper Contributor

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 to build your application from your code. In SPFX you have to manage so many different tools with different versions that sometime it becomes overwhelming.

Here are the details of my environment.

1) Node.js v 8.11.4

2) spfx - 1.7.0

3) gulp CLI version 2.0.1 (Global Install)

 

I have done a "npm install" to install the dependencies for the project. However when I try to run the application, I get an error " Local gulp not found in project dir". Try running : npm install gulp. I tried the suggested command "npm install gulp" to do the local install of the gulp even though I have the global install of the gulp. This did not help.

I looked at the node_modules in the VS code and I cannot decode it to understand if gulp is there in the local dependency list or not.

I have tried google and everyone has a different suggestion to solve this problem. Nothing seems to help.

If someone can give me a tip or share their experience, I will really appreciate it.

Thanks in advance

-Arun

1 Reply
I posted it in SharePoint developer as that seems more appropriate for this question