Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Critical error while npm install with NodeJS 12 caused by gulp 3.9.1 dependency #949

Open
ionutfinta opened this issue Apr 21, 2020 · 0 comments

Comments

@ionutfinta
Copy link

Hello,

Problem

When trying to install pagekit from source everything works fine until the npm install .
I encountered the same issue as described here.
Briefly (for the GIT search engine if someone will encounter this error): When npm runs the script bower install && webpack && gulp, it throws the error ReferenceError: primordials is not defined .

The problem is caused by incompatibility between Node @ > 11.15 and gulp @ < 4.0

The best solution I found (here) to pass through this error was to use nvm-windows (Node Version Manager) and downgrade node to 11 by nvm install 11 nvm use 11

Some front-end dependencies upgrades should fix it...

Technical Details

  • Operating System: Windows 10
  • Pagekit version: 1.0.18
  • Webserver: Pagekit
  • Database: LiteSQL
  • PHP Version: 7.4
  • Node.js version: 12 (problem) -> 11 (solution)

Regards,

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

No branches or pull requests

1 participant