Questions tagged [.npmrc]
65 questions
2
votes
1 answer
How to authenticate azure devops pipeline , so that pipeline can restore yarn packages successfully
My application uses an yarn package which is installed in local after authentication.Registry url is specified in .npmrc file. Now my build pipeline fails, and says "Package restore failed" (Request failed "401 Unauthorized""). How to authenticate…

Deepak Kothari
- 1,601
- 24
- 31
1
vote
0 answers
Node env variables within Dockerfile behind a corporate proxy
I am building a custom Docker Image of a Node/Nextjs app that will be used in a CI/CD to Azure App Service behind a corporate proxy.
I am able to 'npm install' locally by setting up .npmrc so I am not getting SSL issues locally. Though when I am…

Blaike24
- 23
- 6
1
vote
0 answers
set yarn registry settings with CLI
I have an .npmrc file with the following settings:
@mms:registry=https://artifactory.local/artifactory/api/npm/npm-dp-local/
//artifactory.local/artifactory/api/npm/npm-dp-local/:_auth =…

konclave
- 648
- 1
- 7
- 19
1
vote
2 answers
Updating NPM Requires New Version of NPM(deadlock) With engines Requirement in package.json
When requiring a strict version of npm in package.json with an .npmrc file it gives an error when running npm ci as expected, but does not allow the npm version to be updated.
package.json
"engines": {
"npm":…

Mark wijkhuizen
- 373
- 3
- 10
1
vote
0 answers
npmrc file for different folders
I have .npmrc file in the my root folder with package.json file.But I still have client folder and server folder with their own package.json files.How I can share this npmrc to my server and client folder.Thank you

Vadszh Makedonski
- 57
- 2
- 7
1
vote
2 answers
Should .npmrc be ignored?
The Fontawesome Pro instructions describe placing a secret key in a .npmrc file but it is unclear how this file should be managed. Specifically, should this file be ignored by Git?

orome
- 45,163
- 57
- 202
- 418
1
vote
0 answers
Creating @SCOPE_NAME in azure artifacts for NPM
In this link, Microsoft explained How to create @Scope_Name, but I did not understand Where to create @Scope_Name.
How can I create it?
Thanks in advance
Any help would be appreciated

Shiraz Rayan
- 31
- 1
1
vote
0 answers
Company npm registries wont allow me to install cucumber
I am trying to install cucumber-cypress package from npm. Problem is that we have company registers in npmrc.
Now when try to install cucumber-cypress npm install --save-dev cypress-cucumber-preprocessor package.
I get…

Juraj Jakubov
- 291
- 4
- 13
1
vote
0 answers
How to set multiple registries in .npmrc for different repositories with auth
I am currently working on a project and I have to install the dependencies from multiple registries.
Public repositories from the default npm registry
My own private repositories (scoped) from npm registry using _authToken
From nexus repository…

Aleem
- 93
- 2
- 14
1
vote
1 answer
Add Additional npm packages on Azure DevOps Feed
I use Angular 2.4 for my project and the project contains .npmrc file that uses an internal register. Currently the build pipeline is returning this error:
No matching version found for yargs@^3.32.0. In most cases you or one
of your dependencies…

superninja
- 3,114
- 7
- 30
- 63
1
vote
0 answers
npm package installation over proxy ends in error 407
I am trying to install some npm packages on my enterprise pc. Lately it worked fine, but all of the sudden me and a college received a cb() error with the logs being:
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose…

tobias
- 11
- 2
1
vote
0 answers
Publish multiple packages from subfolders
So let's say I have a project called elements.
In this elements project I managed to do npm publish by adding .npmrc file and proper package.json to the root of the project.
What would be the best way to approach publishing if I was to introduce new…

Skafec
- 49
- 6
1
vote
1 answer
Azure Artifacts updating credentials with vsts-npm-auth
I try to update my azure artifact and received the next error:
npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="https://pkgsprodsbr1.app.pkgs.visualstudio.com/"
npm ERR! A complete log of this run can be found in:
npm ERR! …

Juan Ignacio Carrozzo
- 51
- 1
- 5
1
vote
0 answers
unable to authetnicate to Azure DevOps Artifacts feed from AppCenter build pipeline
I have a ReactNative iOS app building on appcenter that cannot access npm feed on Azure DevOps Artifacts. Here are the artifacts from the project. I tried everything but dont see an issue.
project root…

Ivan
- 1,254
- 12
- 25
1
vote
1 answer
Getting a 404 on a private repo after adding a personal access token to .npmrc
Not sure why this would be happening. Getting a
Request failed \"404 Not Found\""
I've created the token in my github settings, set the correct repository rights on the token, and then added it to my .npmrc file. In place of $TOKEN I've copied in…

Christa
- 61
- 11