Jan 29 2019 09:41 AM
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 (Sample application)
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
Jan 29 2019 10:29 AM
Jan 29 2019 11:58 AM
Hi Joel, I tried deleting node_modules folder but it did not help :-(. Any more suggestions.
Thanks
-Arun
Jan 29 2019 01:43 PM
Jan 31 2019 09:05 AM
SolutionI 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.
Oct 25 2021 08:14 AM
Oct 26 2021 02:41 PM
Jan 31 2019 09:05 AM
SolutionI 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.