error after running yo @microsoft/sharepoint

Gadiya Siddhali Vinodkumar 1 Reputation point
2022-11-10T11:27:06.357+00:00

:\Program Files\nodejs\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> (C:\Program Files\nodejs\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> (C:\Program Files\nodejs\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)

Microsoft 365 and Office Office Online Server
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 30,046 Reputation points Microsoft External Staff
    2022-11-11T08:29:43.167+00:00

    Hi,
    I suggest you refer to this thread and check if you can get any help from it:

    https://learn.microsoft.com/en-us/answers/questions/899865/typeerror-objectfromentries-is-not-a-function.html

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.