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.
<code>ng
fs.js:44
} = primordials;
^
ReferenceError: primordials is not defined
at fs.js:44:5
at req_ (C:UsershomeUserAppDataRoamingnpmnode_modulesangular-clinode_modulesnativesindex.js:143:24)
at Object.req [as require] (C:UsershomeUserAppDataRoamingnpmnode_modulesangular-clinode_modulesnativesindex.js:55:10)
at Object.<anonymous> (C:UsershomeUserAppDataRoamingnpmnode_modulesangular-clinode_modulesyamnode_modulesgraceful-fsfs.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
</code>
<code>ng
fs.js:44
} = primordials;
^
ReferenceError: primordials is not defined
at fs.js:44:5
at req_ (C:UsershomeUserAppDataRoamingnpmnode_modulesangular-clinode_modulesnativesindex.js:143:24)
at Object.req [as require] (C:UsershomeUserAppDataRoamingnpmnode_modulesangular-clinode_modulesnativesindex.js:55:10)
at Object.<anonymous> (C:UsershomeUserAppDataRoamingnpmnode_modulesangular-clinode_modulesyamnode_modulesgraceful-fsfs.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
</code>
ng
fs.js:44
} = primordials;
^
ReferenceError: primordials is not defined
at fs.js:44:5
at req_ (C:UsershomeUserAppDataRoamingnpmnode_modulesangular-clinode_modulesnativesindex.js:143:24)
at Object.req [as require] (C:UsershomeUserAppDataRoamingnpmnode_modulesangular-clinode_modulesnativesindex.js:55:10)
at Object.<anonymous> (C:UsershomeUserAppDataRoamingnpmnode_modulesangular-clinode_modulesyamnode_modulesgraceful-fsfs.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.