Questions tagged [npm-config]

21 questions
0
votes
0 answers

Struck on node.js.npm command keeps giving just one output "Error: EISDIR:illegal operation on a directory, read". .npmrc is not found in directory

I was unable to send e-mail through Node.js. So I googled a few pages. And I saw a command and executed it. The command was npm config set cafile /path/to/your/cert.pem --global. Now it ended up giving only one output for all npm commands Error:…
0
votes
0 answers

Use custom registy, ideally from package.json

In my package.json I have "config": { "registry": "https://registry.example.net" } In order to use a local registry. If I execute yarn install --verbose though, I see yarn does not use this but uses its own registry: Performing "GET" request to…
Andresch Serj
  • 35,217
  • 15
  • 59
  • 101
0
votes
1 answer

Problems with npm registry during Angular 8 update

We are currently updating an Angular 7.2 version on Angular 8. After running the command sudo ng update @angular/cli @angular/core, there are many error messages like the following: 404 Not Found - GET https://my-company-registry/leaflet We use a…
Codehan25
  • 2,704
  • 10
  • 47
  • 94
0
votes
1 answer

How override nodejs config when it run from npm?

Here is documentation about node config: node myapp.js --NODE_CONFIG='{"Customer":{"dbConfig":{"host":"customerdb.prod"}}}' BUt what if I run npm script? In this case all parameters will passed into npm not nodejs, am I wrong? How to pass…
Cherry
  • 31,309
  • 66
  • 224
  • 364
0
votes
2 answers

NPM throws error on "audit fix" - Configured registry is not supported

Since last night i'm getting the following error: npm ERR! code ENOAUDIT npm ERR! audit Your configured registry (https://registry.npmjs.org/) does not support audit requests. npm ERR! A complete log of this run can be found in: npm ERR! …
Ron
  • 149
  • 2
  • 16
0
votes
1 answer

How Do I Use an NPM Configuration File In an Intermediate Container?

When trying to docker build \ --tag my-app:latest \ . with the following Dockerfile: FROM node:9-stretch AS intermediate ARG NPM_TOKEN COPY [".npmrc", "./"] RUN ["chmod", "0600", ".npmrc"] COPY ["package.json", "./"] RUN ["npm",…
Mike
  • 1,080
  • 1
  • 9
  • 25
1
2