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

ReferenceError: primordials is not defined #11

Open
bigoper opened this issue Sep 9, 2021 · 2 comments
Open

ReferenceError: primordials is not defined #11

bigoper opened this issue Sep 9, 2021 · 2 comments

Comments

@bigoper
Copy link

bigoper commented Sep 9, 2021

Test environement

OS: MacOS Big Sur
npm --version  7.21.0
node --version v16.8.0

Based on the quick start

  1. Download latest release of UGUI (1.3.0)
  2. Extract the UGUI folder from the zip file
  3. npm install
  4. npm start

Error

npm ERR! code 1
npm ERR! path /Users/aviivgi/Documents/development/blitzz.io/ugui/1.3.0/node_modules/nw
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js
npm ERR! fs.js:47
npm ERR! } = primordials;
npm ERR!     ^
npm ERR! 
npm ERR! ReferenceError: primordials is not defined
npm ERR!     at fs.js:47:5
npm ERR!     at req_ (/Users/aviivgi/Documents/development/blitzz.io/ugui/1.3.0/node_modules/natives/index.js:143:24)
npm ERR!     at Object.req [as require] (/Users/aviivgi/Documents/development/blitzz.io/ugui/1.3.0/node_modules/natives/index.js:55:10)
npm ERR!     at Object.<anonymous> (/Users/aviivgi/Documents/development/blitzz.io/ugui/1.3.0/node_modules/download/node_modules/graceful-fs/fs.js:1:37)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1101:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR!     at require (node:internal/modules/cjs/helpers:94:18)
@bigoper
Copy link
Author

bigoper commented Sep 9, 2021

Additional Info

gulp --version
CLI version: 2.3.0

@TheJaredWilcurt
Copy link
Member

UGUI is pretty old, and based on a very old version of NW.js. So it only works if you use nvm to change your global node version to an older version of Node, like 4.0.0. You may be off using a newer NW.js boilerplate:

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