![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
ado-npm-auth
Advanced tools
The ado-npm-auth package can automatically use the azureauth CLI to fetch tokens and update a user's .npmrc file for authenticating to ADO package feeds.
The ado-npm-auth
package can automatically use the azureauth
CLI to fetch tokens and update a user's .npmrc
file for authenticating to ADO package feeds.
You'll first need an .npmrc
in your project such as...
registry=https://pkgs.dev.azure.com/org/project/_packaging/feedname/npm/registry/
You can run the binary "ado-npm-auth"
via yarn ado-npm-auth
or npm exec ado-npm-auth
.
It will then shell out to the azureauth
package on npm, retrieve a token, and update your ~/.npmrc
.
The main difference between the two is how they function, and where they can run. The vsts-npm-auth
tool is Windows only, and uses MSAL authentication.
ado-npm-auth
uses the node-azureauth
library, to wrap the azureauth-cli, which itself is a cross platform MSAL wrapper.
Since the azureauth-cli
is cross-platform, ado-npm-auth
will also run cross-platform as well!
One of the easiest ways to use the tool is to add it to your "preinstall"
script in your repo like this...
"scripts": {
"preinstall": "npm exec ado-npm-auth"
},
It will then perform a quick "pre-flight" check to assess if the token is valid, and generate a new one if it has expired.
You may need to set the registry to the public NPM feed when running npm exec
or npx
.
There are 2 options to address this case:
You can hop one directory up, or run it from an arbitrary path and pass the configuration.
pushd ..
npx ado-npm-auth -c <myrepo>\.npmrc
popd
If that's the case, set the environment variable npm_config_registry=https://registry.npmjs.org
.
That will ensure that npx
or npm exec
grabs from the public NPM feed, bypassing the soon-to-be authenticated ADO feed.
"scripts": {
"preinstall": "npm_config_registry=https://registry.npmjs.org npm exec ado-npm-auth"
},
FAQs
The ado-npm-auth package can automatically use the azureauth CLI to fetch tokens and update a user's .npmrc file for authenticating to ADO package feeds.
The npm package ado-npm-auth receives a total of 6,689 weekly downloads. As such, ado-npm-auth popularity was classified as popular.
We found that ado-npm-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.