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

[Bug] Missing writev method in patched FileHandle implementation #2083

Closed
1 task
DefectingCat opened this issue Nov 5, 2020 · 0 comments · Fixed by #3889
Closed
1 task

[Bug] Missing writev method in patched FileHandle implementation #2083

DefectingCat opened this issue Nov 5, 2020 · 0 comments · Fixed by #3889
Assignees
Labels
bug Something isn't working upholded Real issues without formal reproduction

Comments

@DefectingCat
Copy link

  • I'd be willing to implement a fix

Describe the bug

yarn 2 can not worked with hexo blog, when i used yarn dlx hexo g, it will output the errors as:

FATAL {
  err: TypeError: handle.writev is not a function
      at _writev (C:\Git\test\.yarn\cache\warehouse-npm-4.0.0-e80d10caa8-17c4cbf5f1.zip\node_modules\warehouse\lib\database.js:17:41)
      at exportAsync (C:\Git\test\.yarn\cache\warehouse-npm-4.0.0-e80d10caa8-17c4cbf5f1.zip\node_modules\warehouse\lib\database.js:51:13)
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
FATAL TypeError: handle.writev is not a function
    at _writev (C:\Git\test\.yarn\cache\warehouse-npm-4.0.0-e80d10caa8-17c4cbf5f1.zip\node_modules\warehouse\lib\database.js:17:41)
    at exportAsync (C:\Git\test\.yarn\cache\warehouse-npm-4.0.0-e80d10caa8-17c4cbf5f1.zip\node_modules\warehouse\lib\database.js:51:13)

whether it is my blog or install hexo newly will be get same error both.

only can use the yarn dlx hexo cl and yarn dlx hexo init.

DONOT use the hexo server,it will be cant exit. the Ctrl + C will be get the same error:

image

To Reproduce

my steps:

  1. install yarn 2: yarn set version berry
  2. hexo init, in other project: yarn dlx hexo init ../test/
  3. into the project test: yarn dlx hexo g

Screenshots

image

Environment if relevant (please complete the following information):

  • OS: [ Window10 ]
  • Node version [15.1.0]
  • Yarn version [2.3.3]

Additional context

use npm or older yarn can work normally

(sorry about my bad english

@DefectingCat DefectingCat added the bug Something isn't working label Nov 5, 2020
@paul-soporan paul-soporan added the upholded Real issues without formal reproduction label Nov 7, 2020
@paul-soporan paul-soporan changed the title [Bug] yarn 2 cannot work with the hexo blog [Bug] Missing writev method in patched FileHandle implementation Nov 7, 2020
@paul-soporan paul-soporan self-assigned this Dec 23, 2020
@merceyz merceyz assigned merceyz and unassigned paul-soporan Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upholded Real issues without formal reproduction
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants