Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object.fromEntries is not a function #242

Open
ECasio opened this issue May 15, 2022 · 3 comments
Open

Object.fromEntries is not a function #242

ECasio opened this issue May 15, 2022 · 3 comments

Comments

@ECasio
Copy link

ECasio commented May 15, 2022

Whenever I run 'yo chrome-extension --no-babel' to create a project without babel I receive this error. Anyone an idea what I need to do?

@ronyfadel
Copy link

+1, I'm seeing this as well on node v10.18.0

@dpalic
Copy link

dpalic commented Sep 8, 2022

+1 same here
also with node v10.18.0

.nvm/versions/node/v10.18.0/lib/node_modules/yo/node_modules/npm-registry-fetch/node_modules/@npmcli/fs/lib/fs.js:6
const fsSync = Object.fromEntries(Object.entries(fs).filter(([k, v]) =>
                      ^

TypeError: Object.fromEntries is not a function
    at Object.<anonymous> (.nvm/versions/node/v10.18.0/lib/node_modules/yo/node_modules/npm-registry-fetch/node_modules/@npmcli/fs/lib/fs.js:6:23)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (.nvm/versions/node/v10.18.0/lib/node_modules/yo/node_modules/npm-registry-fetch/node_modules/@npmcli/fs/lib/index.js:2:6)
    at Module._compile (internal/modules/cjs/loader.js:778:30)

any hint?

@cleydyr
Copy link

cleydyr commented Jul 19, 2023

Object.fromEntries is supported only on version 12.0.0 of Node.js (source).

Also, in the package.json file, there's a requirement for Node.js >= 12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants