首页 > 解决方案 > ReferenceError:未定义原始

问题描述

当我使用“aws-s3-zipper”时出现此错误。

aws-s3-zipper:1.3.2,节点:v14.15.3,npm:6.14.9

ReferenceError: primordials is not defined
at fs.js:45:5
at req_ (/home/aswin/varthana/varthana-sourcing/sourcing-web-backend/node_modules/natives/index.js:143:24)
at Object.req [as require] (/home/aswin/varthana/varthana-sourcing/sourcing-web-backend/node_modules/natives/index.js:55:10)
at Object.<anonymous> (/home/aswin/varthana/varthana-sourcing/sourcing-web-backend/node_modules/aws-s3-zipper/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)

标签: javascriptnode.jsreactjsamazon-s3npm

解决方案


推荐阅读