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.

Unable to NPM install, "no such package available"

See original GitHub issue

Bug description:

I’m trying to install the ng-bootstrap NPM package using the following command line command:

npm install --save @ng-bootstrap/ng-bootstrap

but getting the following error output:

npm ERR! argv "/Users/.../.nvm/versions/node/v6.10.0/bin/node" "/Users/.../.nvm/versions/node/v6.10.0/bin/npm" "install" "@ng-bootstrap/ng-bootstrap@1.0.0-alpha.26"
npm ERR! node v6.10.0
npm ERR! npm  v4.3.0
npm ERR! code E404

npm ERR! 404 no such package available : @ng-bootstrap/ng-bootstrap
npm ERR! 404
npm ERR! 404  '@ng-bootstrap/ng-bootstrap' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/.../.npm/_logs/2017-06-20T14_41_59_075Z-debug.log

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: 4.0.0

ng-bootstrap: Alpha 26

Bootstrap: 4 Alpha 6

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sparkbuzzcommented, Jun 21, 2017

Ok, so upon further investigation, this was exactly the case @pkozlowski-opensource . When I started working here, someone had me edit the .npmrc file and added some configuration to private repos as such:

@ourstuff:registry=http://npm.ourcompany.net

After adding

@ng-bootstrap:registry=https://registry.npmjs.org

ng-bootstrap was able to install perfectly. I don’t like the above solution, it feels wrong, so will Google around on the right way to achieve this.

Thanks for the assistance!

0reactions
seguxcommented, Sep 26, 2018

Ok, so upon further investigation, this was exactly the case @pkozlowski-opensource . When I started working here, someone had me edit the .npmrc file and added some configuration to private repos as such:

@ourstuff:registry=http://npm.ourcompany.net

After adding

@ng-bootstrap:registry=https://registry.npmjs.org

ng-bootstrap was able to install perfectly. I don’t like the above solution, it feels wrong, so will Google around on the right way to achieve this.

Thanks for the assistance!

Did you noticed about other solution? i think is a ugly mode to solve scoped packages

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install resulting in 'ENOENT: no such file or directory'
I was facing the same issue. I firstly delete my node_modules and delete the cache by following command: rm -rf node_modules && npm...
Read more >
How to fix: npm ERR! enoent ENOENT: no such file or ...
I recently struggled for a while with an npm error thrown when executing npm install of some package. The error message was npm...
Read more >
5 Ways to Fix the Npm Install Not Working Issue
Way 1. Make Sure Npm Is Installed ... The main cause of the npm command not found error is that npm is not...
Read more >
Common errors | npm Docs
You are trying to install on a drive that either has no space, or has no permission to write. Free some disk space...
Read more >
Unable to use NPM install for Node.js application in Plesk
/usr/bin/env: 'node': No such file or directory ... of the application packages no longer fails with the “node: not found” error." Fixed in:....
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