Questions tagged [.npmrc]
65 questions
0
votes
0 answers
NPM. Installing dependencies older than a specific date
I want to install dependencies that older than a specific date. For this goal I write before=2021-06-15 to the local .npmrc file. And run npm install . But NPM installs the latest version anyway.
Why the written config param is not…
0
votes
0 answers
Request failed:401 unauthorised- getting this error after running yarn install on mac, does anyone know what is the root cause for this?
I am trying to install the Cypress project using yarn install command.
Steps I followed:
1.cloned project
2.generated ssh key
3.generated access token and encoded it
4.created .npmrc file
5.ran "yarn install"
But still I am getting this error,
I…
0
votes
0 answers
How to upload existing .tgz file into nexus3
I have already created an npm repository in Nexus3. According to my scenario, I have a build command to run then it is created as a dist folder. Under this folder, I have .tgz file. I need to upload this .tgz file to Nexus. I set up my package.json…

Pandula
- 45
- 5
0
votes
0 answers
npm config rebuild-bundle set to false producing unexpected behavior
As defined in the npm package.json docs, in npm 8 and above, I can set bundleDependencies to the boolean value true, which will bundle all of my dependencies. However, every time I install a new package, npm automatically enumerates a list of…

ansona
- 791
- 4
- 2
0
votes
1 answer
How to install private npm package in bit.dev?
I'm try to install a private NPM package but is failing when using bit install.
I also tried using yarn install to add the package just to check if I have the right access and it works.
Here's the screenshot of the error encountering when…

Jonas Ivy V. Imperial
- 125
- 1
- 3
- 12
0
votes
1 answer
How to resolve NPM packages from different organization(Azure Devops)
We have an NPM package say 'design' in say organization1, I have a pipeline which is part of the same organization that is able to resolve the package with just npmrc file. I wanted to access the packages 'design' from organization2, I am not able…

threeleggedrabbit
- 1,722
- 2
- 28
- 60
0
votes
0 answers
stackblitz - import (react) project from a github repo
i'm trying to open my repo in stackblitz,
this is the url that i use
stackblitz.com/github/pinale/Refine/tree/master/refinemuiapp
Stackblitz automatically open the file .npmrc and the preview of the project remains stucked in starting dev server…

pinale
- 2,060
- 6
- 38
- 72
0
votes
1 answer
Is there a way to install an npm package locally but not affect package.json or package-lock.json?
I have a project that I'm working on for a client where I have two private packages (which I can't get access to npm install) are inside the package.json.
I do however have access to clone the repos for those said packages. If I simply run an npm…

kevin.coyle
- 231
- 3
- 8
0
votes
0 answers
npm publish to registry.npmjs.org fails in GitLab CI
I tried to publish in registry.npmjs.org/ with gitlab ci, but instead of publish, i get an error
I tried what this page says https://webbureaucrat.gitlab.io/posts/continuously-deploying-an-npm-package-with-gitlab-ci-cd/
with this gitlab-ci.yml…

Martin ad
- 1
- 1
0
votes
1 answer
How to authenticate to Azure devops private package feed from .npmrc using jenkins pipeline
I have a react application whose deployment is done through Jenkins pipeline.
package.json uses a private feed present in Azure Devops Artifcats.
I want to authenticate the .npmrc present in gitlab , to azure devops using my jenkins pipeline.
Could…

Anjali
- 1
- 2
0
votes
1 answer
configuring .npmrc to use NPM_TOKEN to publish to public repo
I've created a public npm repository: https://www.npmjs.com/package/point-cloud-visualiser
I'm trying to run npm publish from within codebuild. I have generated a token and saved it in AWS secrets manager. I am succesfully pulling the secret in the…

Mark
- 136
- 9
0
votes
0 answers
How to configure two different package with different projectId in same registry on .npmrc file
I have two different npm packages generated on my gitlab registry. I need to import both the packages in my new project.
Both the project has different projectId.
How can I configure this in my npmrc file?
I have done the below for one…

Ashwin Allen
- 99
- 1
- 6
0
votes
1 answer
How to configure .npmrc file to be able to combine different NPM registries?
How to set an .npmrc file to tell npm install to download all the dependencies from https://registry.npmjs.org but only a specific one from a corporate Artifactory under https://artifactory.corporation.io/artifactory/npm/ that needs authentication…

Ghassen
- 591
- 1
- 15
- 33
0
votes
1 answer
How to install private git library to npm project?
In a project which I work with there is private project library which is available for me directly - https://gitlab.some-project/some-utils
In package.json it is requested like
"dependencies": {
"@some-project/some-utils": "0.1.42",
...
…

user18668497
- 187
- 1
- 9
0
votes
1 answer
.yarnrc private registry authentication with username and password
The instructions on how to migrate to Yarn 2 are unclear, and it's not obvious how to authenticate to a private registry which uses a username and password.
Here's the contents of my .npmrc…

Harry
- 187
- 2
- 10