How can I Install bryntum calendar using Azure Devops Pipeline,
Please see my error information in the attached file
Support Forum
Hi!
The error says that you are trying to install Bryntum package from https://registry.npmjs.org repository.
It is not possible. More details on this 404 error can be found here
https://www.bryntum.com/docs/calendar/#Calendar/guides/npm-repository.md#troubleshooting
You should setup npm to use Bryntum repository and authenticate
This is described here
https://www.bryntum.com/docs/calendar/#Calendar/guides/npm-repository.md#repository-access
Auth token can be copied from your local .npmrc file which is created when you authenticate to Bryntum repository.
Check these docs for .npmrc file location
https://docs.npmjs.com/cli/v7/configuring-npm/npmrc
Please check Microsoft docs for using Authentication here
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/package/npm-authenticate?view=azure-devops
and here
https://docs.microsoft.com/en-us/azure/devops/artifacts/npm/npmrc?view=azure-devops
Hi Sergey,
Thank you for your response.
I followed the instruction here: https://docs.microsoft.com/en-us/azure/devops/artifacts/npm/npmrc?view=azure-devops
I also created a service connection :
https://drive.google.com/file/d/1GcaqRas_vC_c5Djuv3XV0rz6iGemPqLb/view?usp=sharing
and attached the service to azure pipeline:
https://drive.google.com/file/d/1GcaqRas_vC_c5Djuv3XV0rz6iGemPqLb/view?usp=sharing
However, the error still raise:
It seems that, service connection of Azure Devops has supported token, can we use token instead of username and password? If it is, how can we get the token from bryntum?
Thanks
I have no experiences with Azure, nevertheless, the first link says:
Azure DevOps Services recommends using two .npmrc files:
One .npmrc should live at the root of your git repo adjacent to your project's package.json.
and
On your development machine, you will also have a .npmrc in $HOME for Linux or Mac systems or $env.HOME for win systems. This .npmrc should contain credentials for all of the registries that you need to connect to. The NPM client will look at your project's .npmrc, discover the registry, and fetch matching credentials from $HOME/.npmrc or $env.HOME/.npmrc.
It seems that you only need to place .npmrc
file (with valid authToken) to one of the above.
To get the "logged-in" .npmrc, follow the steps in https://www.bryntum.com/docs/calendar/#Calendar/guides/npm-repository.md#repository-access and then run npm config ls
in the terminal:
npm config ls
; "user" config from /Users/saki/.npmrc
@bryntum:registry = "https://npm.bryntum.com"
//npm.bryntum.com/:_authToken = (protected)
; node bin location = /Users/saki/.nvm/versions/node/v12.22.1/bin/node
; cwd = /Users/Shared/data/devel/bryntum-suite
; HOME = /Users/saki
; Run `npm config ls -l` to show all defaults.
Here you can see that in my case the "user" file is used and it is located in my home directory, so that I would copy it to the Azure-recommended locations.
That should be all that is needed.