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

yarn command -> throw new AssertionError(obj); #1422

Closed
cetindogu opened this issue Oct 26, 2023 · 9 comments
Closed

yarn command -> throw new AssertionError(obj); #1422

cetindogu opened this issue Oct 26, 2023 · 9 comments

Comments

@cetindogu
Copy link

cetindogu commented Oct 26, 2023

node -v ->v18.16.1
yarn version->v1.22.19
OS: Windows 10 22H2
ERROR for "yarn" command:

...
warning http-proxy-middleware > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning http-proxy-middleware > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning http-proxy-middleware > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning http-proxy-middleware > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning jwks-rsa > @types/express-jwt > @types/[email protected]: This is a stub types definition. express-unless provides its own type definitions, so you do not need this installed.
[3/5] Fetching packages...
[-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0/1937node:assert:125
throw new AssertionError(obj);
^

AssertionError [ERR_ASSERTION]: 23 == 0
at ClientRequest.onConnect (C:\Users\cetin.dogu\source\cypressdeneme\cypress-realworld-app.yarn\releases\yarn-1.22.19.cjs:146337:14)
at Object.onceWrapper (node:events:628:26)
at ClientRequest.emit (node:events:513:28)
at Socket.socketOnData (node:_http_client:582:11)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 23,
expected: 0,
operator: '=='
}

@MikeMcC399
Copy link
Contributor

@cetindogu

A typical log on Windows 11 Pro 22H2 looks like this, so I wonder why you are seeing something quite different on Windows 10:

$ yarn
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning " > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning " > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning " > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning " > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning " > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning " > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning " > @xstate/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning "aws-amplify > @aws-amplify/core > [email protected]" has unmet peer dependency "react-native@*".
warning "aws-amplify > @aws-amplify/analytics > @aws-sdk/client-firehose > @aws-sdk/middleware-retry > [email protected]" has unmet peer dependency "react-native@>=0.56".
warning " > [email protected]" has incorrect peer dependency "react@^16 || ^17".
warning " > [email protected]" has incorrect peer dependency "react-dom@^16 || ^17".
warning " > [email protected]" has incorrect peer dependency "react@^15.3.0 || ^16.0.0-alpha".
warning "react-infinite-calendar > [email protected]" has incorrect peer dependency "[email protected] || 16.x".
warning "react-infinite-calendar > [email protected]" has incorrect peer dependency "react@^15.0.0 || ^16.0.0".
warning "react-infinite-calendar > [email protected]" has incorrect peer dependency "react-dom@^15.0.0 || ^16.0.0".
warning "react-infinite-calendar > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning " > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".warning "@babel/plugin-proposal-private-property-in-object > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
warning "@babel/plugin-proposal-private-property-in-object > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@cypress/code-coverage > @cypress/[email protected]" has unmet peer dependency "@babel/core@^7.0.1".
warning "@cypress/code-coverage > @cypress/[email protected]" has unmet peer dependency "@babel/preset-env@^7.0.0".
warning "@cypress/code-coverage > @cypress/[email protected]" has unmet peer dependency "babel-loader@^8.0.2 || ^9".
warning "@cypress/code-coverage > @cypress/[email protected]" has unmet peer dependency "webpack@^4 || ^5".
warning " > @cypress/[email protected]" has unmet peer dependency "html-webpack-plugin@>=4".
warning " > @cypress/[email protected]" has unmet peer dependency "webpack@>=4".
warning " > @cypress/[email protected]" has unmet peer dependency "webpack-dev-server@>=3.0.0".
warning " > @percy/[email protected]" has incorrect peer dependency "cypress@^3 || ^4 || ^5 || ^6".
warning "eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
warning "eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
warning " > [email protected]" has incorrect peer dependency "graphql@^14.7.0 || ^15.3.0".
warning Workspaces can only be enabled in private projects.
[5/5] Building fresh packages...
$ husky install && patch-package
husky - Git hooks installed
patch-package 7.0.0
Applying patches...
@material-ui/[email protected][email protected] ✔
Done in 300.57s.

@MikeMcC399
Copy link
Contributor

@cetindogu

I also tested on Windows 10 and found no problem.

Perhaps your clone of the repo is not identical to the original develop branch? You could try resetting it or cloning a fresh new copy.

@cetindogu
Copy link
Author

Maybe i have coorperate networking problem, thanks for the answer, i will test in a public network

@MikeMcC399
Copy link
Contributor

@cetindogu

As a cross-check you might like to execute yarn install --force

$ yarn install --force
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[#######################-------------------------------------------------------------------------------------------------] 372/1928

I am only seeing 1928 and it looks like you are seeing 1937, which makes me think that perhaps your copy is not 100% the same as the original.

@cetindogu
Copy link
Author

@cetindogu

As a cross-check you might like to execute yarn install --force

$ yarn install --force
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[#######################-------------------------------------------------------------------------------------------------] 372/1928

I am only seeing 1928 and it looks like you are seeing 1937, which makes me think that perhaps your copy is not 100% the same as the original.

İ tried both yarn and npm, no more edit, just cloned then yarn command, so i am sure it is network access problem

@MikeMcC399
Copy link
Contributor

@cetindogu

The error you see could be caused by network access affecting the successful download of the Cypress binary.

@MikeMcC399
Copy link
Contributor

@cetindogu

Were you able to resolve your issue?

@cetindogu
Copy link
Author

Not yet.

@MikeMcC399
Copy link
Contributor

@cetindogu

Maybe i have coorperate networking problem, thanks for the answer, i will test in a public network

We didn't hear anything more from you and the problem you reported has not been mentioned by any other users, so I suggest to close this issue.

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

2 participants