A
A
Andrey Samoylenko2021-03-19 12:49:35
Node.js
Andrey Samoylenko, 2021-03-19 12:49:35

Node JS: "primordials is not defined". How to fix the error?

Good afternoon friends! I first installed node.js to try out the foundation for emails2 Sass version.
When trying to initialize the framework with the command in the foundation new --framework emails console
, an error occurs:

fs.js:45
} = primordials;
    ^

ReferenceError: primordials is not defined
←[90m    at fs.js:45:5←[39m
    at req_ (C:\Users\byket\AppData\Roaming\npm\node_modules\←[4mfoundation-cli←[24m\node_modules\←[4mnatives←[24m\index.js:143:24)
    at Object.req [as require] (C:\Users\byket\AppData\Roaming\npm\node_modules\←[4mfoundation-cli←[24m\node_modules\←[4mnatives←[24m\index.js:55:10)
    at Object.<anonymous> (C:\Users\byket\AppData\Roaming\npm\node_modules\←[4mfoundation-cli←[24m\node_modules\←[4mgraceful-fs←[24m\fs.js:1:37)
←[90m    at Module._compile (internal/modules/cjs/loader.js:1063:30)←[39m
←[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)←[39m
←[90m    at Module.load (internal/modules/cjs/loader.js:928:32)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:769:14)←[39m
←[90m    at Module.require (internal/modules/cjs/loader.js:952:19)←[39m
←[90m    at require (internal/modules/cjs/helpers.js:88:18)←[39m


I thought it was the version of node js and I switched from 14 to 10 with nvm, but the problem remains.
What does he lack? Maybe you need to install gulp? It's just that the Foundation fir Emails2 documentation doesn't say anything about gulp.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Samoylenko, 2021-03-19
@Ketch

found a solution to the problem, maybe it will come in handy for someone:
instead of foundation new --framework emailsusing the command, npx -p [email protected] foundation new --framework emails
that is, the problem is in the version of node js, as far as I understand, 10 is better for working with this framework

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question