Hi,
While trying to run json-mock, I came across this -
$ json-mock test_data/db.json
fs.js:39
} = primordials;
^
ReferenceError: primordials is not defined
at fs.js:39:5
at req_ (/usr/local/lib/node_modules/json-mock/node_modules/natives/index.js:143:24)
at Object.req [as require] (/usr/local/lib/node_modules/json-mock/node_modules/natives/index.js:55:10)
at Object.<anonymous> (/usr/local/lib/node_modules/json-mock/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:1200:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1049:32)
at Function.Module._load (internal/modules/cjs/loader.js:937:14)
at Module.require (internal/modules/cjs/loader.js:1089:19)
at require (internal/modules/cjs/helpers.js:73:18)
I am on OS X Catalina, node v14.3.0
Some sources online recommend this is an issue with grunt, while others say it's because the package is built with a very old version of gulp, which is not compatible with nodejs 12.x and above. Still others think this is an issue with the natives module.
Have you seen this? Any recommendations on how to fix it?
Hi,
While trying to run json-mock, I came across this -
I am on OS X Catalina, node v14.3.0
Some sources online recommend this is an issue with grunt, while others say it's because the package is built with a very old version of gulp, which is not compatible with nodejs 12.x and above. Still others think this is an issue with the natives module.
Have you seen this? Any recommendations on how to fix it?