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

Cannot use 'in' operator to search for '^4.14.34' in undefined #1241

Closed
VsLoureiro opened this issue Oct 19, 2016 · 2 comments
Closed

Cannot use 'in' operator to search for '^4.14.34' in undefined #1241

VsLoureiro opened this issue Oct 19, 2016 · 2 comments

Comments

@VsLoureiro
Copy link

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

Bug

What is the current behavior?

Doesn't add packages.

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

Run $ yarn

What is the expected behavior?

Should install all my dependencies in package.config

Please mention your node.js, yarn and operating system version.
node.js: v4.6.0
npm: 3.10.8
yarn: 0.16.0
Windows: 7

Log:

Trace:
TypeError: Cannot use 'in' operator to search for '^4.14.34' in undefined
at C:\Users\vloureiro\AppData\Roaming\npm\node_modules\yarn\lib-legacy\resolvers\registries\npm-resolver.js:74:24
at next (native)
at step (C:\Users\vloureiro\AppData\Roaming\npm\node_modules\yarn\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
at C:\Users\vloureiro\AppData\Roaming\npm\node_modules\yarn\node_modules\babel-runtime\helpers\asyncToGenerator.js:35:14
at new Promise (C:\Users\vloureiro\AppData\Roaming\npm\node_modules\yarn\node_modules\core-js\library\modules\es6.promise.js:191:7)
at C:\Users\vloureiro\AppData\Roaming\npm\node_modules\yarn\node_modules\babel-runtime\helpers\asyncToGenerator.js:14:12
at Function.findVersionInRegistryResponse (C:\Users\vloureiro\AppData\Roaming\npm\node_modules\yarn\lib-legacy\resolvers\registries\npm-resolver.js:84:7)
at C:\Users\vloureiro\AppData\Roaming\npm\node_modules\yarn\lib-legacy\resolvers\registries\npm-resolver.js:101:34
at next (native)
at step (C:\Users\vloureiro\AppData\Roaming\npm\node_modules\yarn\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)

This happens when I try to install dependencies from @types/xxxx all the others work ok
This particular the dependency was @types/lodash

@ecozoic
Copy link

ecozoic commented Oct 19, 2016

I'm getting this issue when installing @angular/xxx packages.

TypeError: Cannot use 'in' operator to search for '2.1.0' in undefined
      at C:\Users\john.mitchell\AppData\Roaming\nvm\v6.9.0\node_modules\yarn\lib\resolvers\registries\npm-resolver.js:62:24
      at next (native)
      at step (C:\Users\john.mitchell\AppData\Roaming\nvm\v6.9.0\node_modules\yarn\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
      at C:\Users\john.mitchell\AppData\Roaming\nvm\v6.9.0\node_modules\yarn\node_modules\babel-runtime\helpers\asyncToGenerator.js:35:14
      at Promise.F (C:\Users\john.mitchell\AppData\Roaming\nvm\v6.9.0\node_modules\yarn\node_modules\core-js\library\modules\_export.js:35:28)
      at C:\Users\john.mitchell\AppData\Roaming\nvm\v6.9.0\node_modules\yarn\node_modules\babel-runtime\helpers\asyncToGenerator.js:14:12
      at Function.findVersionInRegistryResponse (C:\Users\john.mitchell\AppData\Roaming\nvm\v6.9.0\node_modules\yarn\lib\resolvers\registries\npm-resolver.js:72:7)
      at C:\Users\john.mitchell\AppData\Roaming\nvm\v6.9.0\node_modules\yarn\lib\resolvers\registries\npm-resolver.js:89:34
      at next (native)
      at step (C:\Users\john.mitchell\AppData\Roaming\nvm\v6.9.0\node_modules\yarn\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)

Node - 6.90
npm - 3.10.8
OS - Windows 10
yarn - 0.16.1

@wyze
Copy link
Member

wyze commented Oct 24, 2016

Solved by #1356.

@wyze wyze closed this as completed Oct 24, 2016
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

3 participants