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" #229

Open
joshjavier opened this issue Oct 3, 2020 · 2 comments
Open

How to fix "ReferenceError: primordials is not defined" #229

joshjavier opened this issue Oct 3, 2020 · 2 comments

Comments

@joshjavier
Copy link

joshjavier commented Oct 3, 2020

I'm trying to install Darkness Developer Edition. Every step worked fine except for the last one

  1. Run npm install from the same directory as package.json to install dependencies and compile all SCSS to CSS

where I encountered the following error

❯ npm install

> [email protected] install /home/joshjavier/OpenSourceContributions/darkness
> gulp install

fs.js:41
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:41:5
    at req_ (/home/joshjavier/OpenSourceContributions/darkness/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/home/joshjavier/OpenSourceContributions/darkness/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/home/joshjavier/OpenSourceContributions/darkness/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1085:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:791:14)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:88:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `gulp install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Checking the version of some packages gave me the following:

  • node.js: 14.3.0
  • npm: 6.14.8
  • gulp:
    • CLI version: 2.3.0
    • Local version: 3.9.1

What's the recommended way to fix this?

@theme1256
Copy link
Collaborator

Currently it is not possible to compile Darkness with node version 12+.

@vesper8
Copy link

vesper8 commented Sep 5, 2021

To be clear, you have to install node 11 to compile darkness

Simply nvm install 11

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

3 participants