Skip to content

Can't run this: Error: Command failed: node npm run i18n:extract and Cannot find module 'fs.realpath/index.js' #643

@osseonews

Description

@osseonews

Error while starting AdminForth. Set it up with instructions. using NPM. Database connects fine.

Node.js version:
v24.14.0

Error:

Error: Command failed: node npm run i18n:extract

spa@0.0.0 i18n:extract
echo {} > i18n-empty.json && vue-i18n-extract report --vueFiles "./src/**/*.{js,vue,ts}" --output ./i18n-messages.json --languageFiles "i18n-empty.json" --add

node:internal/modules/cjs/loader:539
throw err;
^

Error: Cannot find module 'fs.realpath/index.js'. Please verify that the package.json has a valid "main" entry

at Object.<anonymous> (node_modules/vue-i18n-extract/node_modules/glob/glob.js:43:10)

{
code: 'MODULE_NOT_FOUND',
requestPath: 'fs.realpath'
}

Node.js v24.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions