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

Error when running npm run build #330

Open
TjalleWired opened this issue May 28, 2020 · 4 comments
Open

Error when running npm run build #330

TjalleWired opened this issue May 28, 2020 · 4 comments

Comments

@TjalleWired
Copy link

TjalleWired commented May 28, 2020

Describe the bug
Error when trying to build the project using npm run build

A clear and concise description of what the bug is.
Log of when error appears;
2020-05-28T09_48_42_493Z-debug.log

To Reproduce
Run everything with elevated user perms.

use git to clone latest repo
run npm install ,which yields the expected results.
npm run build give out an error.

fs.js:35
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:35:5
    at req_ (/mnt/c/Users/admin/Desktop/xeogl/xeogl/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/mnt/c/Users/admin/Desktop/xeogl/xeogl/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/mnt/c/Users/admin/Desktop/xeogl/xeogl/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1133:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
    at Module.load (internal/modules/cjs/loader.js:977:32)
    at Function.Module._load (internal/modules/cjs/loader.js:877:14)
    at Module.require (internal/modules/cjs/loader.js:1019:19)
    at require (internal/modules/cjs/helpers.js:77:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xeogl@0.9.0 build: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xeogl@0.9.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


Expected behavior
A succesfull build using npm run

Desktop (please complete the following information):

  • OS: Windows 10 Latest stable release, NPM v6.14.4, Node v12.16.3

Additional context
Also have tried using WSL Ubuntu and Ubuntu 18.04 LTS

@TjalleWired
Copy link
Author

TjalleWired commented May 28, 2020

It seems that the error is in a gulp version mismatch. Not entirely sure yet.

Also have tried downgrading to current LTS node version (12.17)

@moriarty233
Copy link

I miss a same problem.
Have you solve it yet?

@TjalleWired
Copy link
Author

I miss a same problem.
Have you solve it yet?

Not yet. I will post my fix, IF I ever find it .
I suggest you do the same ;)

Problem seems to be in the versions of the packages.

@moriarty233
Copy link

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