13 questions
0 votes
0 answers
182 views
Bun install fails for private Git repo even with .npmrc and env variable for Bitbucket token
I'm trying to install a private Bitbucket Git repository as a dependency in my project using Bun v1.2.10 on Windows. My package.json dependency: "dependencies": { "@repo/sdk": &...
0 votes
0 answers
160 views
Properly passing Docker secrets for npmrc and auth tokens
I'm having an issue where I want my javascript project to build in Docker. I copy all projects file that are needed and then I run pnpm i. This will not work because I have a private npm registry for ...
0 votes
1 answer
51 views
I am using GitHub workflow action to publish a package when ever I push to main
I am using .npmrc to specify the registry and install it other projects, but as .npmrc is git ignored, how can I do this automatically at the time of deployment I want to know what to do Can you ...
1 vote
1 answer
1k views
How to use .env variables inside .npmrc?
I want to use .env file variables in .npmrc file. Is that possible? I know we can run export SOME_PRIVATE_GITHUB_ACCESS_TOKEN=1234 before run npm install, but I don't want to do that everytime. I want ...
7 votes
1 answer
5k views
How do you add a comment to .npmrc?
My .npmrc looks like this: node-options=--openssl-legacy-provider I want it to look like this: COMMENT the following line is needed for node 18 or higher node-options=--openssl-legacy-provider How ...
0 votes
1 answer
193 views
.npmrc permission denied every time I open the terminal
I've been getting this annoying error everytime I open a new terminal window or tab saying: bash: /.npmrc: Permission denied And that is it, I have been trying to find a solution (unsuccessfully) for ...
4 votes
0 answers
2k views
using environment variable instead of PAT in .npmrc file
I am trying to not use my PAT stored in the .npmrc file that is checked into the root of my repository. Right now, I have a GitHub Actions workflow setup that publishes a package to our GitHub package ...
0 votes
0 answers
1k views
project not using .npmrc file
I have .npmrc file at the root in my project. But for some reason npm i doesn't use that for proxy. Instead it is picking up my bash_profile. Can someone please help how to force use .npmrc file?
1 vote
1 answer
836 views
Using ARG in my Dockerfile but still getting "Failed to replace env in config" when running my build
I have this file (.npmrc.docker) //registry.npmjs.org/:_authToken=${NPM_TOKEN} And in my Docker file I have ARG NPM_TOKEN RUN mv .npmrc.docker .npmrc RUN yarn install However when I run my Docker ...
1 vote
0 answers
612 views
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 ...
3 votes
0 answers
1k views
.npmrc failed to replace env in config
Me and my colleagues have a problem with .npmrc Most of us are on Mac OSx and this works @REGISTRY_NANME:registry=https://gitlab.com/api/v4/packages/npm/ //gitlab.com/api/v4/packages/npm/:_authToken=${...
1 vote
0 answers
473 views
NPM Private Registy Packages - Auth Token Security Management
We are have Nodejs API written in Typescript. We are using NPM Packages from Gitlab private registries. We have the Registry URL and Token. We need to store that in the Project in .npmrc file. But the ...
1 vote
1 answer
1k views
Private npm registry with fallback to global registry
Installing the npm package from the global registry( https://registry.npmjs.com ), if that package does not exist, install it from Azure Artifacts. To do this: First I create .npmrc in the root ...