Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fix "ReferenceError: primordials is not defined" in Node.js #52

Open
aparrot89 opened this issue Apr 19, 2022 · 1 comment
Open

Comments

@aparrot89
Copy link

I have installed Node.js modules by 'npm install', and then I tried to do npm install -g gulp gulp-cli.

When I run gulp I get that :

ReferenceError: primordials is not defined
    at fs.js:47:5
    at req_ (/Users/aparrot/git/cards-jekyll-template/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/Users/aparrot/git/cards-jekyll-template/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/Users/aparrot/git/cards-jekyll-template/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (node:internal/modules/cjs/loader:1099:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
@rykersun
Copy link

rykersun commented Jul 1, 2022

Try this:

sudo npm install -g n
sudo n 11.15.0

and run gulp again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants