Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在CentOS-7-x86_64-GenericCloud.qcow2映像上安装Thread、npm和Node.js导致问题_Node.js_Npm_Centos7_Yarnpkg - Fatal编程技术网

在CentOS-7-x86_64-GenericCloud.qcow2映像上安装Thread、npm和Node.js导致问题

在CentOS-7-x86_64-GenericCloud.qcow2映像上安装Thread、npm和Node.js导致问题,node.js,npm,centos7,yarnpkg,Node.js,Npm,Centos7,Yarnpkg,我必须在CentOS-7-x86_64-GenericCloud.qcow2映像上构建Node.js代码。我正在尝试在该映像上安装node12,yarn1.22,但没有获得任何成功。节点10和yarn1.22工作正常。但我们需要节点12,因为在开发过程中使用节点12。节点12和纱线1.22的以下误差。 任何帮助都将不胜感激。提前谢谢 buffer.js:607 slice: (buf, start, end) => buf.utf8Slice(start, end),

我必须在CentOS-7-x86_64-GenericCloud.qcow2映像上构建Node.js代码。我正在尝试在该映像上安装node12,yarn1.22,但没有获得任何成功。节点10和yarn1.22工作正常。但我们需要节点12,因为在开发过程中使用节点12。节点12和纱线1.22的以下误差。 任何帮助都将不胜感激。提前谢谢

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'