Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't install - "Not found : @allenfang/react-toastr" #1152

Closed
mvolkmann opened this issue Mar 15, 2017 · 12 comments
Closed

can't install - "Not found : @allenfang/react-toastr" #1152

mvolkmann opened this issue Mar 15, 2017 · 12 comments

Comments

@mvolkmann
Copy link

mvolkmann commented Mar 15, 2017

Running npm install --save react-bootstrap-table gives this:

npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "react-bootstrap-table"
npm ERR! node v7.7.1
npm ERR! npm  v4.1.2
npm ERR! code E404

npm ERR! 404 Not found : @allenfang/react-toastr
npm ERR! 404
npm ERR! 404  '@allenfang/react-toastr' 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 It was specified as a dependency of 'react-bootstrap-table'
@mvolkmann
Copy link
Author

This seems to only be an issue when using a company-specific npm repo.
Changing my .npmrc file to use the main npm repo fixed this.

@rahulverma0
Copy link

Hey @mvolkmann ,

I'm getting this error even when I tries to download this dependency from NPM.
Please help.

npm http GET https://registry.npmjs.org/react-bootstrap-table
npm http GET https://registry.npmjs.org/allenfang/react-toastr
npm http 304 https://registry.npmjs.org/react-bootstrap-table
npm http 404 https://registry.npmjs.org/allenfang/react-toastr
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'allenfang/react-toastr' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'frontend'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

@mvolkmann
Copy link
Author

mvolkmann commented Mar 18, 2017 via email

@rahulverma0
Copy link

Hi @mvolkmann ,

I don't have npmrc file in my home directory. What is that should I check specifically?
Here is how I have mentioned the dependencies:

"react-bootstrap-table": "^3.1.1",
"@allenfang/react-toastr": "^2.8.2",
"classnames": "^2.2.5"

@mvolkmann
Copy link
Author

mvolkmann commented Mar 18, 2017 via email

@rahulverma0
Copy link

Hi @mvolkmann ,

Thanks for the quick response. Here is what my project structure looks like:
Package.json
----`` "react-bootstrap-table": "^3.1.1",

Initially I had added the dependencies in my Package.json as shown https://david-dm.org/AllenFang/react-bootstrap-table#info=peerDependencies.
"react-bootstrap-table": "^3.1.1",
"@allenfang/react-toastr": "^2.8.2",
"classnames": "^2.2.5"

In both cases it's giving me same error as below. Installation works fine when I don't have the react-bootstrap-table and it's dependencies.

npm http 404 https://registry.npmjs.org/allenfang/react-toastr
npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'allenfang/react-toastr' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'frontend'
npm ERR! 404
npm ERR! 404 Note that you can also install from a

@mvolkmann
Copy link
Author

I'm stumped. I'm reopening this so maybe someone can provide a solution.

@mvolkmann mvolkmann reopened this Mar 18, 2017
@rahulverma0
Copy link

Hi @AllenFang,

Can you please help with this issue? Looking forward for your response on this.

@rahulverma0
Copy link

rahulverma0 commented Mar 20, 2017

It worked for me. I updated the npm & node version. I'm able to successfully build my project.
<nodeVersion>v6.9.2</nodeVersion>
<npmVersion>3.10.9</npmVersion>

@mvolkmann - You can close this issue. Thanks for the help.

@raghavmac
Copy link

I too faced the same problem. This might happen when you are maintaining private packages. So the solution was to create a file named .npmrc add this line to it registry=https://registry.npmjs.org/

Also, I tried updating the npm and node but didn't work for me.

@AllenFang
Copy link
Owner

yap, this scope npm package is a workaround for original react-toastr that doesn't fix some bugs. I think .npmrc is a good solution now.

@AllenFang
Copy link
Owner

please check #1216, if you have any concern or question, let me know in #1216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants