generator-office: Unable to start the dev server

I was following the steps here: https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/excel-quickstart-jquery?tabs=yeomangenerator

Once I run npm start:

npm start

> office-addin-taskpane-js@0.0.1 start .....\My Office Add-in
> office-addin-debugging start manifest.xml

Debugging is being started...
App type: desktop
Enabled debugging for add-in 05c2e1c9-3e1d-406e-9a91-e9ac64854143. Debug method: 0
Starting the dev server... (webpack-dev-server --mode development)
Unable to start the dev server. Error: The dev server is not running on port 3000.
Sideloading the Office Add-in...
Debugging started.

image

I am on Windows 10 Please can you help me run the add-in? Would really like to try this out 😃

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

@sarahboyce If you go to the directory ā€œc:\users\Sarah Boyce.office-addin-dev-certsā€, you could manually install the CA certificate.

  1. Double-click the ca.crt file.
  2. Click the ā€œInstall Certificateā€¦ā€ button.
  3. Choose ā€œCurrent Userā€ and click Next.
  4. Choose ā€œPlace all certificates in the following storeā€ and click Browse…
  5. Select ā€œTrusted Root Certification Authoritiesā€ and click OK.
  6. Click Next and Finish.

Once the CA certificate is installed, npm run dev-server should be able to run successfully.

@sarahboyce Run this command: npx office-addin-dev-certs install.

If the certificates are already installed, you’ll see a message:

You already have trusted access to https://localhost.

If the certificates are not installed, it will show a message:

The developer certificates have been generated in C:\Users\adamk\.office-addin-dev-certs
Installing CA certificateĀ "Developer CA for Microsoft Office Add-ins"...

You should then see the dialog asking to install the certificate.

After saying yes, it should then show:

You now have trusted access to https://localhost.

Once the certificates are installed, you should be able to run the dev server without problems.