试图在不支持快照的环境中使用 assert.snapshot(),例如 REPL,或者在使用 node --eval 时。
assert.snapshot()
node --eval
An attempt was made to use assert.snapshot() in an environment that does not support snapshots, such as the REPL, or when using node --eval.