-
Notifications
You must be signed in to change notification settings - Fork 300
Description
Hi all,
after installing Node.js v12.16.2 on Windows 10 in order to use the Ionic framework, I get the following error checking the npm version to test the environment.
C:\Users\xxxxxx>npm -v
evalmachine.:35
} = primordials;
^
ReferenceError: primordials is not defined
at evalmachine.:35:5
at Object. (C:\Users\beke\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\fs.js:11:1)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Module.require (internal/modules/cjs/loader.js:1042:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (C:\Users\beke\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:3:27)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
I've established that the error I'm getting is not due to an older version of graceful-fs.
I've tried to unistall and re-install node.js 12.16.2, the last LTS version (two times, the first by msi installer downloaded from https://nodejs.org/it/download/ and the second by nvm).
Both the installation returned the same error.
I'v tried to check the effective version of graceful-fs existing on my hdd and opening the package.json file in the C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs folder I found that the version is 4.2.3.
I've also tried to install via npm the last version of node.js (13.13.0) and the result is exactly the same: Graceful-fs 4.2.3 installed and the same error.
Can anyone help me to solve this problem, please?
Any idea?
Any other community to ask these question?