Closed thoriqadillah closed 1 year ago
same error, while running the npm run dev-server
. Any solution for this?
> office-addin-taskpane-react-js@0.0.1 dev-server
> webpack serve --mode development
The developer certificates have been generated in /home/par3836/.office-addin-dev-certs
Installing CA certificate "Developer CA for Microsoft Office Add-ins"...
[webpack-cli] Error: Unable to install the CA certificate. sudo: /usr/sbin/update-ca-certificates: command not found
The packages are attempting to run some commands to install the certificate needed to serve up the add-in content. I don't have a linux box to try this out, but the commands being run are:
sudo mkdir -p /usr/local/share/ca-certificates/office-addin-dev-certs
sudo cp ${caCertificatePath} /usr/local/share/ca-certificates/office-addin-dev-certs
sudo /usr/sbin/update-ca-certificates
The last one seems to be failing, but from what I can tell online it's still a valid command. You could try it manually (once the cert is installed you are good for a while). Is there a better command that should be used?
The linux in question is probably not an Ubuntu, and the update-ca-certificates
does not exist there. I have the same issue, and in my case I have Arch Linux, which uses update-ca-trust
command for this.
This fails if sudo
is not installed. Even if the script is being run as root
(which does not need sudo
). After install sudo
, the script continues. Seems like the script could at least try or check for the need to use sudo
before using it and then failing if the system does not have it installed.
This fails if
sudo
is not installed. Even if the script is being run asroot
(which does not needsudo
). After installsudo
, the script continues. Seems like the script could at least try or check for the need to usesudo
before using it and then failing if the system does not have it installed.
This exactly. I don't really want/need to have sudo installed.
The code for the certificate management script is in packages/office-addin-dev-certs/scripts/*linux.sh of this repo. Feel free to submit a PR that does a better job at installing the necessary certs across the different flavors of linux (it will be faster than waiting for us).
Prerequisites
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Expected behavior
Unable to start the dev server. Error: Unable to install the CA certificate. sudo: /usr/sbin/update-ca-certificates: command not found after executing
npm run start:web -- --document {url}
Current behavior
After following the documentation for excel add in custom function, the error is happening after
npm run start:web -- --document {url}
that statesUnable to start the dev server. Error: Unable to install the CA certificate. sudo: /usr/sbin/update-ca-certificates: command not found
in Fedora 37. I have tried both in windows and linux. The windows setup is working fine, add in dev server is working and I can start coding and testing the add in. But in linux, it doesn't work. I have checked that I have ca-certificates package installedSteps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Failure Logs