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

npm run build fails #144

Open
SeanPhilippi opened this issue Jun 8, 2021 · 2 comments
Open

npm run build fails #144

SeanPhilippi opened this issue Jun 8, 2021 · 2 comments

Comments

@SeanPhilippi
Copy link

SeanPhilippi commented Jun 8, 2021

I cloned the repo, and ran 'npm i' inside the scroblr directory. I have done this on another computer successfully in the past. I am trying to install scroblr on my work (Windows 10) computer.

Here's the error when I try 'npm run build':

Loading "jpm.js" tasks...ERROR

ReferenceError: primordials is not defined
Warning: Task "jpm:xpi" not found. Use --force to continue.

Aborted due to warnings.
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! scroblr@2.2.7 build: grunt
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the scroblr@2.2.7 build script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sphilippi\AppData\Roaming\npm-cache_logs\2021-06-08T14_59
_02_249Z-debug.log

@bdukes
Copy link
Contributor

bdukes commented Jun 8, 2021

The "primordials is not defined" error comes from running Gulp 3 on Node.js 12+. You'll want to use a lower version of Node.js (probably v10.x), assuming you don't want to create a pull request to upgrade this project to Gulp 4. Hope it helps!

@bdukes
Copy link
Contributor

bdukes commented Jun 8, 2021

I guess this project is using Grunt, rather than Gulp, but the same fix should work (though upgrading to the latest Grunt is probably less work than upgrading to Gulp 4, FYI).

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