question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ionic start` command throws npm 404 error when the global npm config has a private registry

See original GitHub issue

Description:

I cannot create a new ionic application with ionic start command

Steps to Reproduce:

  1. Create a ~/.npmrc file with your custom npm registry. For example:
registry=https://mycompany.com/npm/
  1. Run ionic start --pro-id <app_id> command

Output:

NPM throws 404 error


I guess to solve the issue the cli should add --registry <path-to-global-registry> parameter when installing dependencies.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
imhoffdcommented, Jan 17, 2018

@dmitryshimkin I think that’s the best workaround for now. If this issue gets more attention, we’ll revisit. Is that fair?

0reactions
dmitryshimkincommented, Jan 17, 2018

I just learnt that npm config properties can be set via environment variables. So there is a workaround for such case:

npm_config_registry=https://registry.npmjs.org/ ionic start --pro-id <app_id>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing npm package fails with 404 - node.js - Stack Overflow
Try first this commands (in windows run as administrator) npm config set registry http://registry.npmjs.org npm install -g @angular/cli.
Read more >
Surviving the npm ERR! 404 with private packages
Private packages are npm packages that are not accessible to everyone, but only to members of a specific organization that have access ...
Read more >
(Solved) npm ERR! code E404 while working with Power ...
Solution ; STEP 1 : run below commands to solve this issue. npm config set registry http://registry.npmjs.org ; STEP 2 : run below...
Read more >
try creating one first with: npm i --package-lock-only - You.com
This issue exists in the latest npm version. I am using the latest npm; Current Behavior. Using npm install --global <pack> can suggest...
Read more >
firebase-admin - npm
Firebase admin SDK for Node.js. Latest version: 11.4.1, last published: 4 days ago. Start using firebase-admin in your project by running ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found