andrewrk / node-s3-client

high level amazon s3 client for node.js
MIT License
1k stars 303 forks source link

primordials is not defined #236

Open dashritwik opened 3 years ago

dashritwik commented 3 years ago

node .\s3.js
fs.js:36 } = primordials; ^

ReferenceError: primordials is not defined at fs.js:36:5 at req_ (F:\troopsap\source code\test\node_modules\natives\index.js:143:24) at Object.req [as require] (F:\troopsap\source code\test\node_modules\natives\index.js:55:10) at Object. (F:\troopsap\source code\test\node_modules\graceful-fs\fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) i'm getting this error whenever i try to run s3

Kopatch commented 3 years ago

I get the same error when using node 14, I believe the issue comes from graceful-fs dependency, which should be updated to support newer node versions.

pbachman commented 3 years ago

i had the same issue with the node version 14.x, set the resolutions in package.json fixed it for me

 "resolutions": {
    "graceful-fs": "4.x.x"
  },