使用bytenode的几个需要注意的地方

拥剑公子的博客 / 2024-11-07 / 原文

参考这里:https://github.com/bytenode/bytenode/issues/43

(1)编译和运行bytenode的node版本要完全相同,如果是electron,推荐设置环境变量ELECTRON_RUN_AS_NODE为true

(2)运行jsc的环境需要:

const bytenode = require('bytenode')

console.log(!!bytenode)

这样才能require(you.jsc)文件