npm启动期间引发类型错误(无效的arg类型)

编程入门 行业动态 更新时间:2024-10-08 10:29:08

npm启动期间引发<a href=https://www.elefans.com/category/jswz/34/1771355.html style=类型错误(无效的arg类型)"/>

npm启动期间引发类型错误(无效的arg类型)

[运行npm start时出现此错误。我正在尝试启动iquidus区块浏览器。这可能是什么问题?我正在使用最新版本的Node.js。

internal/fs/utils.js:658
    throw new ERR_INVALID_ARG_TYPE(
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (20867)
    at Object.writeFile (fs.js:1356:5)
    at Object.<anonymous> (/root/explorer/bin/cluster:5:6)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'ERR_INVALID_ARG_TYPE'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node --stack-size=10000 ./bin/cluster`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-05-17T12_19_42_800Z-debug.log
回答如下:

嗯,问题出在Nodejs 14.x版本中并不稳定,因此使用了12.x版本并且可以正常工作...

更多推荐

npm启动期间引发类型错误(无效的arg类型)

本文发布于:2024-05-07 21:46:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1757401.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:类型   错误   npm   arg

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!