const Caver = require('caver-js')
const caver = new Caver('https://api.baobab.klaytn.net:8651/')
const tokenContractJSON = require('./contracts/SigmoidToken.json')
var tokenContract;
async function load_config() {
// Settings
tokenContract = await new caver.contract(tokenContractJSON.abi, (contractAddress));
}
load_config();
대강 이런 형식의 코드를 실행하고자 하는데, npm을 이용해서 구동을 하니 segmentation fault가 뜹니다.
Segmentation fault (core dumped)
npm ERR! code ELIFECYCLE
npm ERR! errno 139
npm ERR! sigmoid-cpu-miner@1.0.0 start: `node ./index.js`
npm ERR! Exit status 139
npm ERR!
npm ERR! Failed at the sigmoid-cpu-miner@1.0.0 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:
node의 경우 TextDecoder 문제 때문에 버전 14를 이용하고 있습니다.
오류가 뜨는 이유가 뭘까요…?