Read the statement by Michael Teeuw here.
ReferenceError: primordials is not defined
-
I tried to upgrade using an upgrade script.
evalmachine.<anonymous>:43 } = primordials; ^ ReferenceError: primordials is not defined at evalmachine.<anonymous>:43:5 at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/graceful-fs/fs.js:11:8) at Module._compile (node:internal/modules/cjs/loader:1233:14) at Module._extensions..js (node:internal/modules/cjs/loader:1287:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Module.require (node:internal/modules/cjs/loader:1115:19) at require (node:internal/modules/helpers:130:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:3:27) at Module._compile (node:internal/modules/cjs/loader:1233:14) Node.js v20.5.1
-
@bwente please upgrade to 20.8.0
-
@sdetweil Running into the same thing with Node.js 20.8.0 on other platforms, to try and get around other issues.
Confirmed on brand new Pi install - the install scripts fail as described. With the upgrade script failing too - there’s SOMETHING majorly wrong.
Issue 69 on your github for scripts contains my install.log for that attempt.
-
I tried to do a simple update that did not work.
This fixed it. https://github.com/nodesource/distributions/blob/master/README.md
I also lost electron somehow, once that was installed everything is back. Thank you.
-
@bwente thank you
-
@BKeyport try the upgrade script again, with force instead of apply
it will remove and and add the right version of node the right way, including on buster
please advise your results
-