Closed
Description
- Version: 12.0.0
- Platform: MacOS 10.14, Debian 9
- Subsystem: fs.js module
fs.js:27
const { Math, Object, Reflect } = primordials;
^
ReferenceError: primordials is not defined
at fs.js:27:35
at req_ (/Users/bdev/Documents/Projects/exchanger-api/node_modules/natives/index.js:143:24)
at Object.req [as require] (/Users/bdev/Documents/Projects/exchanger-api/node_modules/natives/index.js:55:10)
at Object.<anonymous> (/Users/bdev/Documents/Projects/exchanger-api/node_modules/unzip/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/Users/bdev/Documents/Projects/exchanger-api/node_modules/unzip/node_modules/graceful-fs/graceful-fs.js:3:27)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/Users/bdev/Documents/Projects/exchanger-api/node_modules/unzip/node_modules/fstream/lib/reader.js:4:10)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
Activity
package71 commentedon Apr 26, 2019
natives@1.1.6
already installed but did not solve the problemtargos commentedon Apr 26, 2019
Node.js cannot support what the
natives
module is doing. It is often broken when a new major release of Node.js happens.The solution to your problem is probably to use a more recent and maintained alternative to the
unzip
module.(chore) Update dependencies
(chore) Update dependencies
(chore) Update dependencies
(chore) Update dependencies
(chore) Update dependencies
(chore) Update dependencies
(chore) Update dependencies
(chore) Update dependencies
aruprakshit commentedon Aug 11, 2019
I am having the same problem.. Anybody got a solution of this?
npm install
fails realglobe-Inc/hrafnar#30Pysis868 commentedon Jun 23, 2020
Had this error without gulp(!!) installing over old v10 installation on Windows using the msi package. Removing that directory's contents and repairing made it work. Why it does not take care in the first place..