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

Could not find package XXX in the registry "npm". #7696

Open
R1cro opened this issue Nov 18, 2019 · 13 comments
Open

Could not find package XXX in the registry "npm". #7696

R1cro opened this issue Nov 18, 2019 · 13 comments

Comments

@R1cro
Copy link

R1cro commented Nov 18, 2019

Do you want to request a feature or report a bug?

I'm reporting a bug.

What is the current behavior?
I'm trying to set packages during the yarn add

If the current behavior is a bug, please provide the steps to reproduce.

I try to install packages during yarn add, but it seems that sometimes it returns me errors like "Could not find package" XXX "in the registry" npm ".

I had this problem last Saturday and I thought that I had problems with the system. Nevertheless, I was convinced that the problem is not on my side, as I tried to execute this command with two different machines (and different networks).

[1/4] 🔍  Resolving packages...
error Couldn't find package "dns-txt" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Error: Couldn't find package "cookie-signature" on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.19.1/libexec/lib/cli.js:721:66)
    at new MessageError (/usr/local/Cellar/yarn/1.19.1/libexec/lib/cli.js:750:123)
    at NpmResolver.<anonymous> (/usr/local/Cellar/yarn/1.19.1/libexec/lib/cli.js:50683:15)
    at Generator.next (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.19.1/libexec/lib/cli.js:304:30)
    at /usr/local/Cellar/yarn/1.19.1/libexec/lib/cli.js:315:13
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

What is the expected behavior?

All packages should be installed correctly.

  "private": true,
  "dependencies": {
    "@babel/preset-react": "^7.7.0",
    "@rails/actioncable": "^6.0.0",
    "@rails/activestorage": "^6.0.0",
    "@rails/ujs": "^6.0.0",
    "@rails/webpacker": "^4.2.0",
    "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
    "cookie-signature": "^1.1.0",
    "dns-txt": "^2.0.2",
    "prop-types": "^15.7.2",
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-on-rails": "11.3.0",
    "react-redux": "^7.1.3",
    "redux": "^4.0.4",
    "turbolinks": "^5.2.0"
  },
  "version": "0.1.0"

Please mention your node.js, yarn and operating system version.
Node: v8.16.2
Yarn 1.19.1
OS: macOS Mojave 10.14.6

@R1cro R1cro changed the title "Could not find package" XXX "in the registry" npm " Could not find package XXX in the registry "npm". Nov 18, 2019
@emision
Copy link

emision commented Nov 18, 2019

Same problem with "ignore-walk" package

verbose 1.606 Performing "GET" request to "https://registry.npmjs.org/ignore-walk". verbose 1.631 Request "https://registry.npmjs.org/ignore-walk" finished with status code 404. verbose 1.718 Error: Couldn't find package "ignore-walk" on the "npm" registry. error Couldn't find package "ignore-walk" on the "npm" registry.

@novli
Copy link

novli commented Nov 19, 2019

Appears to be related to #7691

@ERRORthenBSOD
Copy link

Same

error Couldn't find package "simple-assign" on the "npm" registry.
error Couldn't find package "normalize-range" on the "npm" registry.
error Couldn't find package "create-react-class" on the "npm" registry.
and others...

@sebastiangug
Copy link

sebastiangug commented Nov 20, 2019

I'm getting this in the UK. VPN does not affect it. I'm trying to use it with github package registry configured as such :

registry=https://npm.pkg.github.com/OWNER

@AndreyPatseiko
Copy link

AndreyPatseiko commented Nov 20, 2019

I don't understand how this work, but after yarn init I can install all packages.

@sebastiangug
Copy link

That does not do anything for me.

@PavelDemyanenko
Copy link

Same behaviour on yarn install, and npm install works as expected.

Error: Couldn't find package "some packege" on the "npm" registry. VPN is configured.

Node: 11.12
Yarn 1.19.1
Win 10

@zeroidentidad
Copy link

Same issue with react-navigation dependencies
Another issue with react-scripts dependencies eg.

error Couldn't find package "@typescript-eslint/eslint-plugin@^2.2.0" required by "react-scripts" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
yarnpkg add --exact react react-dom react-scripts --cwd /home/chucho/nodedocs/javascript_fullstack/frontend/ejemplos_vue-react/react-eventos has failed.

@zeroidentidad
Copy link

I got it, in my case I just have to update react's cli tools...
Thats fixed it :v

@zeroidentidad
Copy link

yarn already have a new update today :)

@R1cro
Copy link
Author

R1cro commented Nov 29, 2019

Hey, guys. Seems to be the problems disappeared. Could somebody confirm that, please?

@andrewoh531
Copy link

I'm still getting this error with @types/storybook__react. The package is deprecated but I'm trying to pull down a previous version.

This works fine with npm.

error Couldn't find package "storybook__react@*" required by "@types/storybook__react@*" on the "npm" registry.

@elie222
Copy link

elie222 commented Dec 18, 2019

@andrewoh531 I just ran into the same issue. I ended up removing @types/storybook__react and a deprecated package that was depending on it. I think it was knob_addons types.

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

10 participants