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

Simple upgrade of generator (drop 1 to drop 2) not good enough. Had to reinstall generator and tooling

Open paulryan opened this issue 10 years ago • 8 comments

Category

[x ] Bug?

Expected or Desired Behavior

After successfully running drop 1 projects, upgrading the generator to drop 2 (npm i -g @microsoft/generator-sharepoint@latest) caused new projects to fail during gulp serve. I resolved this issue by performing the following steps (I did them all at once so can't identify what specifically solved my issue:

  • npm uninstall -g @microsoft/generator-sharepoint
  • npm i -g @microsoft/generator-sharepoint
  • npm install --global --production windows-build-tools
  • npm install -g yo (v1.8.4 => v1.8.5)

Observed Behavior

Gulp errors: image Resulting in workbench.html failing to reach local host: image

Steps to Reproduce

Install drop 1 of the generator. Upgrade it to latest (drop 2). Create new template using the generator (using React) Run gulp serve

(Windows 10, Surface Book)

paulryan avatar Sep 03 '16 16:09 paulryan

@paulryan: Is it working with "http"? Url: http://localhost:5432/workbench

parikshit-patel avatar Sep 03 '16 19:09 parikshit-patel

that sort of error normally means something else is already configured for the port. Postgres SQL uses port 5432, while the workbench should be using 4321

patmill avatar Sep 04 '16 04:09 patmill

@parikshit-patel I couldn't get it working on http when I was receiving this error. However, having reinstalled the components it now works over https as well as http. @patmill would reinstalling the generator, the windows build tools, or upgrading yeoman as described have modified my port configurations? (as the issue resolved itself after having done so)

paulryan avatar Sep 04 '16 10:09 paulryan

In addition - If you keep Visual Studio Code open while trying to upgrade using npm update, then you might see a few EPERM errors (read: permission denied).

I can't say that Visual Studio Code caused this (the files mentioned in the errors were not open), but after closing Visual Studio Code and trying again, all went well.

JasonDunbar avatar Sep 05 '16 19:09 JasonDunbar

@paulryan - we don't currently do anything to existing projects, although new projects will modify the port. Also - once you get the certs accepted on your localhost, your browser should remember those settings and no longer give issues on the local or the hosted workbench.

patmill avatar Sep 06 '16 16:09 patmill

Is this still happening? Have you had this issue recently?

iclanton avatar Oct 06 '16 19:10 iclanton

I believe this is closed now.

patmill avatar Feb 24 '17 19:02 patmill

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 30 '20 06:01 msft-github-bot