ReferenceError: primordials is not defined [closed]

Discussão em 'Angular' iniciado por Vladyn, Dezembro 16, 2024.

  1. Vladyn

    Vladyn Guest

    I know this is a duplicate, but I'm getting this and started to be very annoying. None of the answers helped. I've uninstalled node, removed all the AppData npm and cache, installed it again, but no success.

    ng
    fs.js:44
    } = primordials;
    ^

    ReferenceError: primordials is not defined
    at fs.js:44:5
    at req_ (C:\Users\homeUser\AppData\Roaming\npm\node_modules\angular-cli\node_modules\natives\index.js:143:24)
    at Object.req [as require] (C:\Users\homeUser\AppData\Roaming\npm\node_modules\angular-cli\node_modules\natives\index.js:55:10)
    at Object.<anonymous> (C:\Users\homeUser\AppData\Roaming\npm\node_modules\angular-cli\node_modules\yam\node_modules\graceful-fs\fs.js:1:37)
    at Module._compile (node:internal/modules/cjs/loader:1565:14)
    at Object..js (node:internal/modules/cjs/loader:1708:10)
    at Module.load (node:internal/modules/cjs/loader:1318:32)
    at Function._load (node:internal/modules/cjs/loader:1128:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)

    Node.js v22.12.0


    this is the error and I'm not able to use angular cli at all. I have angular 18 with no Grunt of any of the described packages that are not compatible.

    Continue reading...

Compartilhe esta Página