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 -v RangeError: Index out of range #8166

Open
RasalC opened this issue May 30, 2020 · 0 comments
Open

yarn -v RangeError: Index out of range #8166

RasalC opened this issue May 30, 2020 · 0 comments

Comments

@RasalC
Copy link

RasalC commented May 30, 2020

I have to build the nodejs code on CentOS-7-x86_64-GenericCloud.qcow2 image. I'm trying to install node12, yarn1.22 on that image, but not getting any success. Node10 and yarn1.22 work fine. But we need node12 because during development node 12 is used. Getting below error for node12 and yarn 1.22. Any help would be appreciated. Thanks in advance.

yarn -v

buffer.js:607 slice: (buf, start, end) => buf.utf8Slice(start, end), ^

RangeError: Index out of range
at Object.slice (buffer.js:607:37)
at Buffer.toString (buffer.js:804:14)
at Object.readFileSync (fs.js:408:41)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1219:22)
at Module.load (internal/modules/cjs/loader.js:1049:32)
at Function.Module._load (internal/modules/cjs/loader.js:937:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'ERR_OUT_OF_RANGE'

Environment

  • Node Version: 12.0
  • Yarn v1 Version: 1.22
  • OS and version: centos-7-x86-64-genericcloud-qcow2-image
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

1 participant