sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

gulp trust-dev-cert must be run from the project folder, otherwise you get an error

Open exportio opened this issue 8 years ago • 3 comments

Category

  • [ ] Question
  • [ ] Typo
  • [ ] Bug
  • [x ] Additional article idea

Expected or Desired Behavior

Install and trust certificate

Observed Behavior

Error: "No gulpfile found"

Steps to Reproduce

Follow setup instructions and install the developer certificate without changing folders (no instructions to change folders in the article). Going into a newly created project folder where you generated a new project using yo and running gulp trust-dev-cert returns a successful status.

Submission Guidelines

exportio avatar Aug 22 '18 15:08 exportio

Hi @samboustani It should be a easy fix, I presume you have navigated to wrong path. You should use CD to navigate the specific project folder. Once you have navigated to correct project folder, you will find gulpfile.js if you use DIR to check your project folder Than, you can install and trust certificate.

TheMiao avatar Aug 28 '18 09:08 TheMiao

The instructions in creating your first web part tutorial do say to run this command from within the project directory. I'll add some additional information on the dev environment setup that addresses this as well.

andrewconnell avatar Jan 09 '19 11:01 andrewconnell

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 27 '20 00:01 msft-github-bot