Questions tagged [.npmrc]

65 questions
1
vote
2 answers

How to use Azure Key Vault in npmrc file?

I have a secret personal access token (only for building purposes) in my .npmrc file. As this secret is exposed, I thought of replacing this using Azure Key Vault. I haven't found any documentation around it. When I created the personal token…
1
vote
1 answer

Pnpm installation and review results (windows10)

I write everything step by step. I read and applied all the pages on the website from start to finish (from Introduction to Advanced). It may also be useful to appear, I'm not an expert software developer. I'm trying to be a hobby. When I was…
dtonkz
  • 11
  • 1
  • 2
1
vote
0 answers

how to create a private registry to host my custom nodejs libraries

I am working on SAP cloud foundry environment(Pass) where its architecture is micro services. So I want to build two application using node and deploy them in SAP cloud foundry platform. The problem or confusion I am facing is, I have some custom…
user10778951
  • 31
  • 10
1
vote
1 answer

Does package.json support compound variables?

A project that respects the semver directory structure for build artefacts is beginning soon, and package.json or .nmprc would seem to be the right place to define this metadata. This is some preliminary code that demonstrates how the goal is…
Emmington
  • 53
  • 1
  • 9
1
vote
0 answers

Make global npm scripts available to many subprojects

We have a monorepo with many subprojects. root/ complex/dir/layout/subproj1 complex/dir/layout/subprojB other/dir/subproj2 I'd like to have certain scripts available globally that were available to all the different subprojects. An…
Marvin
  • 2,537
  • 24
  • 35
1
vote
1 answer

Update .nprmc file with Artificatory credentials from Jenkins job

I am trying to publish my npm module to artifactory repository from Jenkins. Can someone help me with how to add artifactory credentials to .nprmc file from Jenkins job? I'm trying to make this credential configuration job specific.
1
vote
1 answer

Upstream packages in Artifacts Feed not uploading packages after first npm install

I'm trying to use an npm package I created in my Artifacts feed, I got my .npmrc file in place to go directly to azure feed, first time I run 'npm install' noticed that there are a lot of new npm packages coming because of the upstream configuration…
jorgeolay
  • 13
  • 2
1
vote
1 answer

Not able to install npm packages after placed the private `.npmrc` file in Azure

I'm not able to install packages from npm, since I have placed a .npmrc file for install a private library. This library is hosted by azure work space. So i just placed the new config file to install. And it works fine in localhost. How can i keep…
0
votes
0 answers

WSL - Dockerfile copy hides .npmrc coming from windows filesystem

Note: The project is in the Windows filesystem and not in the WSL (I do not have this trouble when I perform the same steps with the project inside the WSL filesystem, please don't suggest to just change this, I just need to understand the reasons…
0
votes
0 answers

Why does my .npmrc work when the _auth value is hardcoded but not when it uses an env var?

I have the following .npmrc in my home directory (~/.npmrc): registry=https://my-domain.jfrog.io/artifactory/api/npm/my-source/ //my-domain.jfrog.io/artifactory/api/npm/my-source/:email =…
0
votes
0 answers

How can I hide my git token via variable, used in .npmrc file in angular project?

I am creating a package registry in gitlab, for that git provided me a gittoken that I am using in my .npmrc file . When I am using it directly I am able to publish my registry , when I am accessing it through a variable it is not working as…
naman
  • 51
  • 4
0
votes
0 answers

Azure Artifacts feed for public npm module

I have publish a npm module over Azure Artifacts Feed, which works fine with he generated npmrc. I understand that I can update the permission configurations to restrict the access for users too. But, I want to have a npm module which won't need any…
0
votes
0 answers

Use ".npmrc" prefix locally (current project)

Is it possible to set a local destination folder for node_modules in a specific project with an npmrc file? (not globally) I tried to use the syntax "prefix=modules" but modified only the global directory.
Faon
  • 1
0
votes
0 answers

Install private GitLab npm package with a group deploy_token

I am trying to install a private GitLab package via a group deploy_token. The project to which the package belongs is a project inside the group of the deploy_token. The token has read_registry and read_repository permissions. In order to install…
0
votes
0 answers

What are the options of managing multi npm registries?

Working with multiple npm registies and changing manual npmrc files can be a lot of additional work, so are there some better option to save and switch between multiple npmrc files or manage the registry quickly? I would be interested to explore any…
badrddinb
  • 17
  • 8