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 Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
583 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 21,626 Reputation points Microsoft Vendor
    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