类型错误(无效的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类型)
发布评论