Forum Discussion
SPfx Issues Using Gulp Serve
JordanWall the problem might be the command "npm gulp serve"
Leave the npm out and just try "gulp serve"
Please click Mark as Best Response & Like if my post helped you to answer or resolve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
I apologize, that was a typo in my posting. I run 'gulp serve' and have even run 'gulp serve --no-browser'.
- Don KirkhamFeb 25, 2022MVP
JordanWall I am not sur what is happening, since I have seen gulp serve return errors, or be very slow to start the first time, but have never seen it freeze. I would start with environment.
I have a blog post that covers how to quickly set up environment, so you might check there to see if you missed anything. https://www.donkirkham.com/blog/spfx2022/
If you are using nvm, I would create a new environment with the following commands.
nvm install 14.9.0 nvm use 14.9.0 npm install gulp-cli yo @microsoft/generator-sharepoint -gFrom there, change to your current project folder and execute the following
npm i -force gulp serve --nobrowserIF that doesn't work, try
gulp buildIf that doesn't work, try creating a new solution and execute
yo @microsoft/sharepoint gulp serve --nobrowserI hope this helps but troubleshooting these types of problem in the forum can be challenging.
Please click Mark as Best Response & Like if my post helped you to answer or resolve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- JordanWallMar 03, 2022Copper Contributor
Don Kirkham Thank you Don, I am still working on the issue so I will definitely try these suggestions.
I greatly appreciate it!
- jsmileybAug 12, 2022Copper ContributorHey JordanWall. Did you find a resolution or cause for this? I'm running into the same thing.