You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
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
12.0
1.22
The text was updated successfully, but these errors were encountered: